home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'ComCtrls.pas' rev: 3.00
-
- #ifndef ComCtrlsHPP
- #define ComCtrlsHPP
- #include <ToolWin.hpp>
- #include <RichEdit.hpp>
- #include <StdCtrls.hpp>
- #include <Graphics.hpp>
- #include <Menus.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Commctrl.hpp>
- #include <SysUtils.hpp>
- #include <Windows.hpp>
- #include <Messages.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Comctrls
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (__closure *TTabChangingEvent)(System::TObject* Sender, bool &AllowChange);
-
- enum TTabPosition { tpTop, tpBottom };
-
- class DELPHICLASS TCustomTabControl;
- class PASCALIMPLEMENTATION TCustomTabControl : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- Classes::TStrings* FTabs;
- Classes::TStringList* FSaveTabs;
- int FSaveTabIndex;
- Windows::TSmallPoint FTabSize;
- bool FMultiLine;
- bool FUpdating;
- bool FHotTrack;
- bool FScrollOpposite;
- TTabPosition FTabPosition;
- Classes::TNotifyEvent FOnChange;
- TTabChangingEvent FOnChanging;
- Windows::TRect __fastcall GetDisplayRect(void);
- int __fastcall GetTabIndex(void);
- void __fastcall SetHotTrack(bool Value);
- void __fastcall SetMultiLine(bool Value);
- void __fastcall SetScrollOpposite(bool Value);
- void __fastcall SetTabHeight(short Value);
- void __fastcall SetTabIndex(int Value);
- void __fastcall SetTabPosition(TTabPosition Value);
- void __fastcall SetTabs(Classes::TStrings* Value);
- void __fastcall SetTabWidth(short Value);
- void __fastcall TabsChanged(void);
- void __fastcall UpdateTabSize(void);
- HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Message);
- HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TMessage &Message);
- MESSAGE void __fastcall WMNotifyFormat(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(void *Message);
- HIDESBASE MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
- MESSAGE void __fastcall CMTabStopChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
-
- protected:
- virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
- DYNAMIC bool __fastcall CanChange(void);
- virtual bool __fastcall CanShowTab(int TabIndex);
- DYNAMIC void __fastcall Change(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- __property Windows::TRect DisplayRect = {read=GetDisplayRect};
- __property bool HotTrack = {read=FHotTrack, write=SetHotTrack, default=0};
- __property bool MultiLine = {read=FMultiLine, write=SetMultiLine, default=0};
- __property bool ScrollOpposite = {read=FScrollOpposite, write=SetScrollOpposite, default=0};
- __property short TabHeight = {read=FTabSize.y, write=SetTabHeight, default=0};
- __property int TabIndex = {read=GetTabIndex, write=SetTabIndex, default=-1};
- __property TTabPosition TabPosition = {read=FTabPosition, write=SetTabPosition, default=0};
- __property Classes::TStrings* Tabs = {read=FTabs, write=SetTabs};
- __property short TabWidth = {read=FTabSize.x, write=SetTabWidth, default=0};
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- __property TTabChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
-
- public:
- __fastcall virtual TCustomTabControl(Classes::TComponent* AOwner);
- __fastcall virtual ~TCustomTabControl(void);
- __property TabStop ;
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomTabControl(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TTabControl;
- class PASCALIMPLEMENTATION TTabControl : public Comctrls::TCustomTabControl
- {
- typedef Comctrls::TCustomTabControl inherited;
-
- public:
- __property DisplayRect ;
-
- __published:
- __property Align ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property HotTrack ;
- __property MultiLine ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ScrollOpposite ;
- __property ShowHint ;
- __property TabHeight ;
- __property TabIndex ;
- __property TabOrder ;
- __property TabPosition ;
- __property Tabs ;
- __property TabStop ;
- __property TabWidth ;
- __property Visible ;
- __property OnChange ;
- __property OnChanging ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TCustomTabControl.Create */ __fastcall virtual TTabControl(Classes::TComponent* AOwner) : Comctrls::
- TCustomTabControl(AOwner) { }
- /* TCustomTabControl.Destroy */ __fastcall virtual ~TTabControl(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TTabControl(HWND ParentWindow) : Comctrls::TCustomTabControl(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TTabSheet;
- class DELPHICLASS TPageControl;
- class PASCALIMPLEMENTATION TPageControl : public Comctrls::TCustomTabControl
- {
- typedef Comctrls::TCustomTabControl inherited;
-
- private:
- Classes::TList* FPages;
- TTabSheet* FActivePage;
- void __fastcall ChangeActivePage(TTabSheet* Page);
- void __fastcall DeleteTab(TTabSheet* Page);
- TTabSheet* __fastcall GetPage(int Index);
- int __fastcall GetPageCount(void);
- void __fastcall InsertPage(TTabSheet* Page);
- void __fastcall InsertTab(TTabSheet* Page);
- void __fastcall MoveTab(int CurIndex, int NewIndex);
- void __fastcall RemovePage(TTabSheet* Page);
- void __fastcall SetActivePage(TTabSheet* Page);
- void __fastcall UpdateTab(TTabSheet* Page);
- void __fastcall UpdateActivePage(void);
- HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
-
- protected:
- virtual bool __fastcall CanShowTab(int TabIndex);
- DYNAMIC void __fastcall Change(void);
- DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
- DYNAMIC void __fastcall SetChildOrder(Classes::TComponent* Child, int Order);
- virtual void __fastcall ShowControl(Controls::TControl* AControl);
-
- public:
- __fastcall virtual TPageControl(Classes::TComponent* AOwner);
- __fastcall virtual ~TPageControl(void);
- TTabSheet* __fastcall FindNextPage(TTabSheet* CurPage, bool GoForward, bool CheckTabVisible);
- void __fastcall SelectNextPage(bool GoForward);
- __property int PageCount = {read=GetPageCount, nodefault};
- __property TTabSheet* Pages[int Index] = {read=GetPage};
-
- __published:
- __property TTabSheet* ActivePage = {read=FActivePage, write=SetActivePage};
- __property Align ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property HotTrack ;
- __property MultiLine ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ScrollOpposite ;
- __property ShowHint ;
- __property TabHeight ;
- __property TabOrder ;
- __property TabPosition ;
- __property TabStop ;
- __property TabWidth ;
- __property Visible ;
- __property OnChange ;
- __property OnChanging ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TPageControl(HWND ParentWindow) : Comctrls::TCustomTabControl(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TTabSheet : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- TPageControl* FPageControl;
- bool FTabVisible;
- bool FTabShowing;
- Classes::TNotifyEvent FOnHide;
- Classes::TNotifyEvent FOnShow;
- int __fastcall GetPageIndex(void);
- int __fastcall GetTabIndex(void);
- void __fastcall SetPageControl(TPageControl* APageControl);
- void __fastcall SetPageIndex(int Value);
- void __fastcall SetTabShowing(bool Value);
- void __fastcall SetTabVisible(bool Value);
- void __fastcall UpdateTabShowing(void);
- MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- DYNAMIC void __fastcall DoHide(void);
- DYNAMIC void __fastcall DoShow(void);
- virtual void __fastcall ReadState(Classes::TReader* Reader);
-
- public:
- __fastcall virtual TTabSheet(Classes::TComponent* AOwner);
- __fastcall virtual ~TTabSheet(void);
- __property TPageControl* PageControl = {read=FPageControl, write=SetPageControl};
- __property int TabIndex = {read=GetTabIndex, nodefault};
-
- __published:
- __property Caption ;
- __property Enabled ;
- __property Font ;
- __property Height = {stored=false};
- __property Left = {stored=false};
- __property int PageIndex = {read=GetPageIndex, write=SetPageIndex, stored=false, nodefault};
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property bool TabVisible = {read=FTabVisible, write=SetTabVisible, default=1};
- __property Top = {stored=false};
- __property Visible = {stored=false, default=1};
- __property Width = {stored=false};
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEnter ;
- __property OnExit ;
- __property Classes::TNotifyEvent OnHide = {read=FOnHide, write=FOnHide};
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property Classes::TNotifyEvent OnShow = {read=FOnShow, write=FOnShow};
- public:
- /* TWinControl.CreateParented */ __fastcall TTabSheet(HWND ParentWindow) : Controls::TWinControl(ParentWindow
- ) { }
-
- };
-
- enum TStatusPanelStyle { psText, psOwnerDraw };
-
- enum TStatusPanelBevel { pbNone, pbLowered, pbRaised };
-
- class DELPHICLASS TStatusPanel;
- class PASCALIMPLEMENTATION TStatusPanel : public Classes::TCollectionItem
- {
- typedef Classes::TCollectionItem inherited;
-
- private:
- System::AnsiString FText;
- int FWidth;
- TAlignment FAlignment;
- TStatusPanelBevel FBevel;
- TStatusPanelStyle FStyle;
- virtual System::AnsiString __fastcall GetDisplayName(void);
- void __fastcall SetAlignment(Classes::TAlignment Value);
- void __fastcall SetBevel(TStatusPanelBevel Value);
- void __fastcall SetStyle(TStatusPanelStyle Value);
- void __fastcall SetText(const System::AnsiString Value);
- void __fastcall SetWidth(int Value);
-
- public:
- __fastcall virtual TStatusPanel(Classes::TCollection* Collection);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
-
- __published:
- __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
- __property TStatusPanelBevel Bevel = {read=FBevel, write=SetBevel, default=1};
- __property TStatusPanelStyle Style = {read=FStyle, write=SetStyle, default=0};
- __property System::AnsiString Text = {read=FText, write=SetText};
- __property int Width = {read=FWidth, write=SetWidth, nodefault};
- public:
- /* TCollectionItem.Destroy */ __fastcall virtual ~TStatusPanel(void) { }
-
- };
-
- class DELPHICLASS TStatusPanels;
- class DELPHICLASS TStatusBar;
- typedef void __fastcall (__closure *TDrawPanelEvent)(TStatusBar* StatusBar, TStatusPanel* Panel, const
- Windows::TRect &Rect);
-
- class PASCALIMPLEMENTATION TStatusBar : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- TStatusPanels* FPanels;
- Graphics::TCanvas* FCanvas;
- System::AnsiString FSimpleText;
- bool FSimplePanel;
- bool FSizeGrip;
- TDrawPanelEvent FOnDrawPanel;
- Classes::TNotifyEvent FOnResize;
- void __fastcall SetPanels(TStatusPanels* Value);
- void __fastcall SetSimplePanel(bool Value);
- void __fastcall SetSimpleText(const System::AnsiString Value);
- void __fastcall SetSizeGrip(bool Value);
- void __fastcall UpdatePanel(int Index);
- void __fastcall UpdatePanels(void);
- MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall DrawPanel(TStatusPanel* Panel, const Windows::TRect &Rect);
- DYNAMIC void __fastcall Resize(void);
-
- public:
- __fastcall virtual TStatusBar(Classes::TComponent* AOwner);
- __fastcall virtual ~TStatusBar(void);
- __property Graphics::TCanvas* Canvas = {read=FCanvas};
-
- __published:
- __property Align ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property TStatusPanels* Panels = {read=FPanels, write=SetPanels};
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property bool SimplePanel = {read=FSimplePanel, write=SetSimplePanel, nodefault};
- __property System::AnsiString SimpleText = {read=FSimpleText, write=SetSimpleText};
- __property bool SizeGrip = {read=FSizeGrip, write=SetSizeGrip, default=1};
- __property Visible ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property TDrawPanelEvent OnDrawPanel = {read=FOnDrawPanel, write=FOnDrawPanel};
- __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TStatusBar(HWND ParentWindow) : Controls::TWinControl(ParentWindow
- ) { }
-
- };
-
- class PASCALIMPLEMENTATION TStatusPanels : public Classes::TCollection
- {
- typedef Classes::TCollection inherited;
-
- private:
- TStatusBar* FStatusBar;
- HIDESBASE TStatusPanel* __fastcall GetItem(int Index);
- HIDESBASE void __fastcall SetItem(int Index, TStatusPanel* Value);
-
- protected:
- DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
- virtual void __fastcall Update(Classes::TCollectionItem* Item);
-
- public:
- __fastcall TStatusPanels(TStatusBar* StatusBar);
- HIDESBASE TStatusPanel* __fastcall Add(void);
- __property TStatusPanel* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
- public:
- /* TCollection.Destroy */ __fastcall virtual ~TStatusPanels(void) { }
-
- };
-
- enum THeaderSectionStyle { hsText, hsOwnerDraw };
-
- class DELPHICLASS THeaderSection;
- class PASCALIMPLEMENTATION THeaderSection : public Classes::TCollectionItem
- {
- typedef Classes::TCollectionItem inherited;
-
- private:
- System::AnsiString FText;
- int FWidth;
- int FMinWidth;
- int FMaxWidth;
- TAlignment FAlignment;
- THeaderSectionStyle FStyle;
- bool FAllowClick;
- int __fastcall GetLeft(void);
- int __fastcall GetRight(void);
- void __fastcall SetAlignment(Classes::TAlignment Value);
- void __fastcall SetMaxWidth(int Value);
- void __fastcall SetMinWidth(int Value);
- void __fastcall SetStyle(THeaderSectionStyle Value);
- void __fastcall SetText(const System::AnsiString Value);
- void __fastcall SetWidth(int Value);
-
- protected:
- virtual System::AnsiString __fastcall GetDisplayName(void);
-
- public:
- __fastcall virtual THeaderSection(Classes::TCollection* Collection);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- __property int Left = {read=GetLeft, nodefault};
- __property int Right = {read=GetRight, nodefault};
-
- __published:
- __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
- __property bool AllowClick = {read=FAllowClick, write=FAllowClick, default=1};
- __property int MaxWidth = {read=FMaxWidth, write=SetMaxWidth, default=10000};
- __property int MinWidth = {read=FMinWidth, write=SetMinWidth, default=0};
- __property THeaderSectionStyle Style = {read=FStyle, write=SetStyle, default=0};
- __property System::AnsiString Text = {read=FText, write=SetText};
- __property int Width = {read=FWidth, write=SetWidth, nodefault};
- public:
- /* TCollectionItem.Destroy */ __fastcall virtual ~THeaderSection(void) { }
-
- };
-
- class DELPHICLASS THeaderSections;
- class DELPHICLASS THeaderControl;
- typedef void __fastcall (__closure *TDrawSectionEvent)(THeaderControl* HeaderControl, THeaderSection*
- Section, const Windows::TRect &Rect, bool Pressed);
-
- typedef void __fastcall (__closure *TSectionNotifyEvent)(THeaderControl* HeaderControl, THeaderSection*
- Section);
-
- enum TSectionTrackState { tsTrackBegin, tsTrackMove, tsTrackEnd };
-
- typedef void __fastcall (__closure *TSectionTrackEvent)(THeaderControl* HeaderControl, THeaderSection*
- Section, int Width, TSectionTrackState State);
-
- class PASCALIMPLEMENTATION THeaderControl : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- THeaderSections* FSections;
- Graphics::TCanvas* FCanvas;
- bool FHotTrack;
- TDrawSectionEvent FOnDrawSection;
- Classes::TNotifyEvent FOnResize;
- TSectionNotifyEvent FOnSectionClick;
- TSectionNotifyEvent FOnSectionResize;
- TSectionTrackEvent FOnSectionTrack;
- void __fastcall SetHotTrack(bool Value);
- void __fastcall SetSections(THeaderSections* Value);
- void __fastcall UpdateItem(int Message, int Index);
- void __fastcall UpdateSection(int Index);
- void __fastcall UpdateSections(void);
- MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- HIDESBASE MESSAGE void __fastcall WMWindowPosChanged(Messages::TWMWindowPosMsg &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall DrawSection(THeaderSection* Section, const Windows::TRect &Rect, bool Pressed
- );
- DYNAMIC void __fastcall Resize(void);
- DYNAMIC void __fastcall SectionClick(THeaderSection* Section);
- DYNAMIC void __fastcall SectionResize(THeaderSection* Section);
- DYNAMIC void __fastcall SectionTrack(THeaderSection* Section, int Width, TSectionTrackState State);
-
-
- public:
- __fastcall virtual THeaderControl(Classes::TComponent* AOwner);
- __fastcall virtual ~THeaderControl(void);
- __property Graphics::TCanvas* Canvas = {read=FCanvas};
-
- __published:
- __property Align ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property bool HotTrack = {read=FHotTrack, write=SetHotTrack, default=0};
- __property THeaderSections* Sections = {read=FSections, write=SetSections};
- __property ShowHint ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property Visible ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property TDrawSectionEvent OnDrawSection = {read=FOnDrawSection, write=FOnDrawSection};
- __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
- __property TSectionNotifyEvent OnSectionClick = {read=FOnSectionClick, write=FOnSectionClick};
- __property TSectionNotifyEvent OnSectionResize = {read=FOnSectionResize, write=FOnSectionResize};
- __property TSectionTrackEvent OnSectionTrack = {read=FOnSectionTrack, write=FOnSectionTrack};
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall THeaderControl(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION THeaderSections : public Classes::TCollection
- {
- typedef Classes::TCollection inherited;
-
- private:
- THeaderControl* FHeaderControl;
- HIDESBASE THeaderSection* __fastcall GetItem(int Index);
- HIDESBASE void __fastcall SetItem(int Index, THeaderSection* Value);
-
- protected:
- DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
- virtual void __fastcall Update(Classes::TCollectionItem* Item);
-
- public:
- __fastcall THeaderSections(THeaderControl* HeaderControl);
- HIDESBASE THeaderSection* __fastcall Add(void);
- __property THeaderSection* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
- public:
- /* TCollection.Destroy */ __fastcall virtual ~THeaderSections(void) { }
-
- };
-
- enum TNodeState { nsCut, nsDropHilited, nsFocused, nsSelected, nsExpanded };
-
- enum TNodeAttachMode { naAdd, naAddFirst, naAddChild, naAddChildFirst, naInsert };
-
- enum TAddMode { taAddFirst, taAdd, taInsert };
-
- struct TNodeInfo;
- typedef TNodeInfo *PNodeInfo;
-
- #pragma pack(push, 1)
- struct TNodeInfo
- {
- int ImageIndex;
- int SelectedIndex;
- int StateIndex;
- int OverlayIndex;
- void *Data;
- int Count;
- System::SmallString<255> Text;
- } ;
- #pragma pack(pop)
-
- class DELPHICLASS TTreeNode;
- class DELPHICLASS TTreeNodes;
- class DELPHICLASS TCustomTreeView;
- enum TSortType { stNone, stData, stText, stBoth };
-
- typedef void __fastcall (__closure *TTVEditingEvent)(System::TObject* Sender, TTreeNode* Node, bool
- &AllowEdit);
-
- typedef void __fastcall (__closure *TTVEditedEvent)(System::TObject* Sender, TTreeNode* Node, System::AnsiString
- &S);
-
- typedef void __fastcall (__closure *TTVExpandedEvent)(System::TObject* Sender, TTreeNode* Node);
-
- typedef void __fastcall (__closure *TTVExpandingEvent)(System::TObject* Sender, TTreeNode* Node, bool
- &AllowExpansion);
-
- typedef void __fastcall (__closure *TTVCollapsingEvent)(System::TObject* Sender, TTreeNode* Node, bool
- &AllowCollapse);
-
- typedef void __fastcall (__closure *TTVChangingEvent)(System::TObject* Sender, TTreeNode* Node, bool
- &AllowChange);
-
- typedef void __fastcall (__closure *TTVChangedEvent)(System::TObject* Sender, TTreeNode* Node);
-
- typedef void __fastcall (__closure *TTVCompareEvent)(System::TObject* Sender, TTreeNode* Node1, TTreeNode*
- Node2, int Data, int &Compare);
-
- enum THitTest { htAbove, htBelow, htNowhere, htOnItem, htOnButton, htOnIcon, htOnIndent, htOnLabel,
- htOnRight, htOnStateIcon, htToLeft, htToRight };
-
- typedef Set<THitTest, htAbove, htToRight> THitTests;
-
- class PASCALIMPLEMENTATION TCustomTreeView : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- bool FShowLines;
- bool FShowRoot;
- bool FShowButtons;
- TFormBorderStyle FBorderStyle;
- bool FReadOnly;
- Controls::TImageList* FImages;
- Controls::TImageList* FStateImages;
- Controls::TChangeLink* FImageChangeLink;
- Controls::TChangeLink* FStateChangeLink;
- Controls::TImageList* FDragImage;
- TTreeNodes* FTreeNodes;
- TSortType FSortType;
- Classes::TStringList* FSaveItems;
- int FSaveTopIndex;
- int FSaveIndex;
- int FSaveIndent;
- bool FHideSelection;
- Classes::TMemoryStream* FMemStream;
- void *FEditInstance;
- void *FDefEditProc;
- HWND FEditHandle;
- bool FDragged;
- TTreeNode* FRClickNode;
- TTreeNode* FLastDropTarget;
- TTreeNode* FDragNode;
- bool FManualNotify;
- bool FRightClickSelect;
- bool FStateChanging;
- System::WideString FWideText;
- TTVEditingEvent FOnEditing;
- TTVEditedEvent FOnEdited;
- TTVExpandedEvent FOnExpanded;
- TTVExpandingEvent FOnExpanding;
- TTVExpandedEvent FOnCollapsed;
- TTVCollapsingEvent FOnCollapsing;
- TTVChangingEvent FOnChanging;
- TTVChangedEvent FOnChange;
- TTVCompareEvent FOnCompare;
- TTVExpandedEvent FOnDeletion;
- TTVExpandedEvent FOnGetImageIndex;
- TTVExpandedEvent FOnGetSelectedIndex;
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMDrag(Controls::TCMDrag &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- void __fastcall EditWndProc(Messages::TMessage &Message);
- void __fastcall DoDragOver(Controls::TDragObject* Source, int X, int Y, bool CanDrop);
- TTreeNode* __fastcall GetDropTarget(void);
- int __fastcall GetIndent(void);
- TTreeNode* __fastcall GetNodeFromItem(const tagTVITEMA &Item);
- TTreeNode* __fastcall GetSelection(void);
- TTreeNode* __fastcall GetTopItem(void);
- void __fastcall ImageListChange(System::TObject* Sender);
- void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
- void __fastcall SetButtonStyle(bool Value);
- void __fastcall SetDropTarget(TTreeNode* Value);
- void __fastcall SetHideSelection(bool Value);
- void __fastcall SetImageList(int Value, int Flags);
- void __fastcall SetIndent(int Value);
- void __fastcall SetImages(Controls::TImageList* Value);
- void __fastcall SetLineStyle(bool Value);
- void __fastcall SetReadOnly(bool Value);
- void __fastcall SetRootStyle(bool Value);
- void __fastcall SetSelection(TTreeNode* Value);
- void __fastcall SetSortType(TSortType Value);
- void __fastcall SetStateImages(Controls::TImageList* Value);
- void __fastcall SetStyle(int Value, bool UseStyle);
- void __fastcall SetTreeNodes(TTreeNodes* Value);
- void __fastcall SetTopItem(TTreeNode* Value);
- HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMRButtonUp(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
-
- protected:
- DYNAMIC bool __fastcall CanEdit(TTreeNode* Node);
- DYNAMIC bool __fastcall CanChange(TTreeNode* Node);
- DYNAMIC bool __fastcall CanCollapse(TTreeNode* Node);
- DYNAMIC bool __fastcall CanExpand(TTreeNode* Node);
- DYNAMIC void __fastcall Change(TTreeNode* Node);
- DYNAMIC void __fastcall Collapse(TTreeNode* Node);
- virtual TTreeNode* __fastcall CreateNode(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall Delete(TTreeNode* Node);
- virtual void __fastcall DestroyWnd(void);
- DYNAMIC void __fastcall DoEndDrag(System::TObject* Target, int X, int Y);
- DYNAMIC void __fastcall DoStartDrag(Controls::TDragObject* &DragObject);
- DYNAMIC void __fastcall Edit(const tagTVITEMA &Item);
- DYNAMIC void __fastcall Expand(TTreeNode* Node);
- virtual Controls::TCustomImageList* __fastcall GetDragImages(void);
- virtual void __fastcall GetImageIndex(TTreeNode* Node);
- virtual void __fastcall GetSelectedIndex(TTreeNode* Node);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- virtual void __fastcall SetDragMode(Controls::TDragMode Value);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
- __property TTVEditingEvent OnEditing = {read=FOnEditing, write=FOnEditing};
- __property TTVEditedEvent OnEdited = {read=FOnEdited, write=FOnEdited};
- __property TTVExpandingEvent OnExpanding = {read=FOnExpanding, write=FOnExpanding};
- __property TTVExpandedEvent OnExpanded = {read=FOnExpanded, write=FOnExpanded};
- __property TTVCollapsingEvent OnCollapsing = {read=FOnCollapsing, write=FOnCollapsing};
- __property TTVExpandedEvent OnCollapsed = {read=FOnCollapsed, write=FOnCollapsed};
- __property TTVChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
- __property TTVChangedEvent OnChange = {read=FOnChange, write=FOnChange};
- __property TTVCompareEvent OnCompare = {read=FOnCompare, write=FOnCompare};
- __property TTVExpandedEvent OnDeletion = {read=FOnDeletion, write=FOnDeletion};
- __property TTVExpandedEvent OnGetImageIndex = {read=FOnGetImageIndex, write=FOnGetImageIndex};
- __property TTVExpandedEvent OnGetSelectedIndex = {read=FOnGetSelectedIndex, write=FOnGetSelectedIndex
- };
- __property bool ShowButtons = {read=FShowButtons, write=SetButtonStyle, default=1};
- __property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
- __property bool ShowLines = {read=FShowLines, write=SetLineStyle, default=1};
- __property bool ShowRoot = {read=FShowRoot, write=SetRootStyle, default=1};
- __property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
- __property bool RightClickSelect = {read=FRightClickSelect, write=FRightClickSelect, default=0};
- __property int Indent = {read=GetIndent, write=SetIndent, nodefault};
- __property TTreeNodes* Items = {read=FTreeNodes, write=SetTreeNodes};
- __property TSortType SortType = {read=FSortType, write=SetSortType, default=0};
- __property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
- __property Controls::TImageList* Images = {read=FImages, write=SetImages};
- __property Controls::TImageList* StateImages = {read=FStateImages, write=SetStateImages};
-
- public:
- __fastcall virtual TCustomTreeView(Classes::TComponent* AOwner);
- __fastcall virtual ~TCustomTreeView(void);
- bool __fastcall AlphaSort(void);
- bool __fastcall CustomSort(PFNTVCOMPARE SortProc, int Data);
- void __fastcall FullCollapse(void);
- void __fastcall FullExpand(void);
- THitTests __fastcall GetHitTestInfoAt(int X, int Y);
- TTreeNode* __fastcall GetNodeAt(int X, int Y);
- bool __fastcall IsEditing(void);
- void __fastcall LoadFromFile(const System::AnsiString FileName);
- void __fastcall LoadFromStream(Classes::TStream* Stream);
- void __fastcall SaveToFile(const System::AnsiString FileName);
- void __fastcall SaveToStream(Classes::TStream* Stream);
- __property TTreeNode* DropTarget = {read=GetDropTarget, write=SetDropTarget};
- __property TTreeNode* Selected = {read=GetSelection, write=SetSelection};
- __property TTreeNode* TopItem = {read=GetTopItem, write=SetTopItem};
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomTreeView(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
-
- };
-
- struct TNodeCache
- {
- TTreeNode* CacheNode;
- int CacheIndex;
- } ;
-
- class PASCALIMPLEMENTATION TTreeNodes : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TCustomTreeView* FOwner;
- int FUpdateCount;
- TNodeCache FNodeCache;
- void __fastcall AddedNode(TTreeNode* Value);
- HWND __fastcall GetHandle(void);
- TTreeNode* __fastcall GetNodeFromIndex(int Index);
- void __fastcall ReadData(Classes::TStream* Stream);
- void __fastcall Repaint(TTreeNode* Node);
- void __fastcall WriteData(Classes::TStream* Stream);
- void __fastcall ClearCache(void);
-
- protected:
- HTREEITEM __fastcall AddItem(HTREEITEM Parent, HTREEITEM Target, const tagTVITEMA &Item, TAddMode AddMode
- );
- TTreeNode* __fastcall InternalAddObject(TTreeNode* Node, const System::AnsiString S, void * Ptr, TAddMode
- AddMode);
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- tagTVITEMA __fastcall CreateItem(TTreeNode* Node);
- int __fastcall GetCount(void);
- void __fastcall SetItem(int Index, TTreeNode* Value);
- void __fastcall SetUpdateState(bool Updating);
-
- public:
- __fastcall TTreeNodes(TCustomTreeView* AOwner);
- __fastcall virtual ~TTreeNodes(void);
- TTreeNode* __fastcall AddChildFirst(TTreeNode* Node, const System::AnsiString S);
- TTreeNode* __fastcall AddChild(TTreeNode* Node, const System::AnsiString S);
- TTreeNode* __fastcall AddChildObjectFirst(TTreeNode* Node, const System::AnsiString S, void * Ptr);
-
- TTreeNode* __fastcall AddChildObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
- TTreeNode* __fastcall AddFirst(TTreeNode* Node, const System::AnsiString S);
- TTreeNode* __fastcall Add(TTreeNode* Node, const System::AnsiString S);
- TTreeNode* __fastcall AddObjectFirst(TTreeNode* Node, const System::AnsiString S, void * Ptr);
- TTreeNode* __fastcall AddObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- void __fastcall BeginUpdate(void);
- void __fastcall Clear(void);
- void __fastcall Delete(TTreeNode* Node);
- void __fastcall EndUpdate(void);
- TTreeNode* __fastcall GetFirstNode(void);
- TTreeNode* __fastcall GetNode(HTREEITEM ItemId);
- TTreeNode* __fastcall Insert(TTreeNode* Node, const System::AnsiString S);
- TTreeNode* __fastcall InsertObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
- __property int Count = {read=GetCount, nodefault};
- __property HWND Handle = {read=GetHandle, nodefault};
- __property TTreeNode* Item[int Index] = {read=GetNodeFromIndex/*, default*/};
- __property TCustomTreeView* Owner = {read=FOwner};
- };
-
- class PASCALIMPLEMENTATION TTreeNode : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TTreeNodes* FOwner;
- System::AnsiString FText;
- void *FData;
- _TREEITEM *FItemId;
- int FImageIndex;
- int FSelectedIndex;
- int FOverlayIndex;
- int FStateIndex;
- bool FDeleting;
- bool FInTree;
- bool __fastcall CompareCount(int CompareMe);
- bool __fastcall DoCanExpand(bool Expand);
- void __fastcall DoExpand(bool Expand);
- void __fastcall ExpandItem(bool Expand, bool Recurse);
- int __fastcall GetAbsoluteIndex(void);
- bool __fastcall GetExpanded(void);
- int __fastcall GetLevel(void);
- TTreeNode* __fastcall GetParent(void);
- bool __fastcall GetChildren(void);
- bool __fastcall GetCut(void);
- bool __fastcall GetDropTarget(void);
- bool __fastcall GetFocused(void);
- int __fastcall GetIndex(void);
- TTreeNode* __fastcall GetItem(int Index);
- bool __fastcall GetSelected(void);
- bool __fastcall GetState(TNodeState NodeState);
- int __fastcall GetCount(void);
- TCustomTreeView* __fastcall GetTreeView(void);
- void __fastcall InternalMove(TTreeNode* ParentNode, TTreeNode* Node, HTREEITEM HItem, TAddMode AddMode
- );
- bool __fastcall IsEqual(TTreeNode* Node);
- bool __fastcall IsNodeVisible(void);
- void __fastcall ReadData(Classes::TStream* Stream, PNodeInfo Info);
- void __fastcall SetChildren(bool Value);
- void __fastcall SetCut(bool Value);
- void __fastcall SetData(void * Value);
- void __fastcall SetDropTarget(bool Value);
- void __fastcall SetItem(int Index, TTreeNode* Value);
- void __fastcall SetExpanded(bool Value);
- void __fastcall SetFocused(bool Value);
- void __fastcall SetImageIndex(int Value);
- void __fastcall SetOverlayIndex(int Value);
- void __fastcall SetSelectedIndex(int Value);
- void __fastcall SetSelected(bool Value);
- void __fastcall SetStateIndex(int Value);
- void __fastcall SetText(const System::AnsiString S);
- void __fastcall WriteData(Classes::TStream* Stream, PNodeInfo Info);
-
- public:
- __fastcall TTreeNode(TTreeNodes* AOwner);
- __fastcall virtual ~TTreeNode(void);
- bool __fastcall AlphaSort(void);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- void __fastcall Collapse(bool Recurse);
- bool __fastcall CustomSort(PFNTVCOMPARE SortProc, int Data);
- void __fastcall Delete(void);
- void __fastcall DeleteChildren(void);
- Windows::TRect __fastcall DisplayRect(bool TextOnly);
- bool __fastcall EditText(void);
- void __fastcall EndEdit(bool Cancel);
- void __fastcall Expand(bool Recurse);
- TTreeNode* __fastcall getFirstChild(void);
- HWND __fastcall GetHandle(void);
- TTreeNode* __fastcall GetLastChild(void);
- TTreeNode* __fastcall GetNext(void);
- TTreeNode* __fastcall GetNextChild(TTreeNode* Value);
- TTreeNode* __fastcall getNextSibling(void);
- TTreeNode* __fastcall GetNextVisible(void);
- TTreeNode* __fastcall GetPrev(void);
- TTreeNode* __fastcall GetPrevChild(TTreeNode* Value);
- TTreeNode* __fastcall getPrevSibling(void);
- TTreeNode* __fastcall GetPrevVisible(void);
- bool __fastcall HasAsParent(TTreeNode* Value);
- int __fastcall IndexOf(TTreeNode* Value);
- void __fastcall MakeVisible(void);
- virtual void __fastcall MoveTo(TTreeNode* Destination, TNodeAttachMode Mode);
- __property int AbsoluteIndex = {read=GetAbsoluteIndex, nodefault};
- __property int Count = {read=GetCount, nodefault};
- __property bool Cut = {read=GetCut, write=SetCut, nodefault};
- __property void * Data = {read=FData, write=SetData};
- __property bool Deleting = {read=FDeleting, nodefault};
- __property bool Focused = {read=GetFocused, write=SetFocused, nodefault};
- __property bool DropTarget = {read=GetDropTarget, write=SetDropTarget, nodefault};
- __property bool Selected = {read=GetSelected, write=SetSelected, nodefault};
- __property bool Expanded = {read=GetExpanded, write=SetExpanded, nodefault};
- __property HWND Handle = {read=GetHandle, nodefault};
- __property bool HasChildren = {read=GetChildren, write=SetChildren, nodefault};
- __property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
- __property int Index = {read=GetIndex, nodefault};
- __property bool IsVisible = {read=IsNodeVisible, nodefault};
- __property TTreeNode* Item[int Index] = {read=GetItem, write=SetItem/*, default*/};
- __property HTREEITEM ItemId = {read=FItemId};
- __property int Level = {read=GetLevel, nodefault};
- __property int OverlayIndex = {read=FOverlayIndex, write=SetOverlayIndex, nodefault};
- __property TTreeNodes* Owner = {read=FOwner};
- __property TTreeNode* Parent = {read=GetParent};
- __property int SelectedIndex = {read=FSelectedIndex, write=SetSelectedIndex, nodefault};
- __property int StateIndex = {read=FStateIndex, write=SetStateIndex, nodefault};
- __property System::AnsiString Text = {read=FText, write=SetText};
- __property TCustomTreeView* TreeView = {read=GetTreeView};
- };
-
- typedef TNodeCache *PNodeCache;
-
- class DELPHICLASS ETreeViewError;
- class PASCALIMPLEMENTATION ETreeViewError : public Sysutils::Exception
- {
- typedef Sysutils::Exception inherited;
-
- public:
- /* Exception.Create */ __fastcall ETreeViewError(const System::AnsiString Msg) : Sysutils::Exception(
- Msg) { }
- /* Exception.CreateFmt */ __fastcall ETreeViewError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
- /* Exception.CreateRes */ __fastcall ETreeViewError(int Ident, Extended Dummy) : Sysutils::Exception(
- Ident, Dummy) { }
- /* Exception.CreateResFmt */ __fastcall ETreeViewError(int Ident, const System::TVarRec * Args, const
- int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
- /* Exception.CreateHelp */ __fastcall ETreeViewError(const System::AnsiString Msg, int AHelpContext
- ) : Sysutils::Exception(Msg, AHelpContext) { }
- /* Exception.CreateFmtHelp */ __fastcall ETreeViewError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
- ) { }
- /* Exception.CreateResHelp */ __fastcall ETreeViewError(int Ident, int AHelpContext) : Sysutils::Exception(
- Ident, AHelpContext) { }
- /* Exception.CreateResFmtHelp */ __fastcall ETreeViewError(int Ident, const System::TVarRec * Args,
- const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext)
- { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~ETreeViewError(void) { }
-
- };
-
- class DELPHICLASS TTreeView;
- class PASCALIMPLEMENTATION TTreeView : public Comctrls::TCustomTreeView
- {
- typedef Comctrls::TCustomTreeView inherited;
-
- __published:
- __property ShowButtons ;
- __property BorderStyle ;
- __property DragCursor ;
- __property ShowLines ;
- __property ShowRoot ;
- __property ReadOnly ;
- __property RightClickSelect ;
- __property DragMode ;
- __property HideSelection ;
- __property Indent ;
- __property Items ;
- __property OnEditing ;
- __property OnEdited ;
- __property OnExpanding ;
- __property OnExpanded ;
- __property OnCollapsing ;
- __property OnCompare ;
- __property OnCollapsed ;
- __property OnChanging ;
- __property OnChange ;
- __property OnDeletion ;
- __property OnGetImageIndex ;
- __property OnGetSelectedIndex ;
- __property Align ;
- __property Enabled ;
- __property Font ;
- __property Color ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property Ctl3D ;
- __property SortType ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnClick ;
- __property OnEnter ;
- __property OnExit ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnStartDrag ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnDblClick ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property PopupMenu ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property ShowHint ;
- __property Images ;
- __property StateImages ;
- public:
- /* TCustomTreeView.Create */ __fastcall virtual TTreeView(Classes::TComponent* AOwner) : Comctrls::
- TCustomTreeView(AOwner) { }
- /* TCustomTreeView.Destroy */ __fastcall virtual ~TTreeView(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TTreeView(HWND ParentWindow) : Comctrls::TCustomTreeView(
- ParentWindow) { }
-
- };
-
- enum TTrackBarOrientation { trHorizontal, trVertical };
-
- enum TTickMark { tmBottomRight, tmTopLeft, tmBoth };
-
- enum TTickStyle { tsNone, tsAuto, tsManual };
-
- class DELPHICLASS TTrackBar;
- class PASCALIMPLEMENTATION TTrackBar : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- TTrackBarOrientation FOrientation;
- TTickMark FTickMarks;
- TTickStyle FTickStyle;
- int FLineSize;
- int FPageSize;
- int FMin;
- int FMax;
- int FFrequency;
- int FPosition;
- int FSelStart;
- int FSelEnd;
- Classes::TNotifyEvent FOnChange;
- void __fastcall SetOrientation(TTrackBarOrientation Value);
- void __fastcall SetParams(int APosition, int AMin, int AMax);
- void __fastcall SetPosition(int Value);
- void __fastcall SetMin(int Value);
- void __fastcall SetMax(int Value);
- void __fastcall SetFrequency(int Value);
- void __fastcall SetTickStyle(TTickStyle Value);
- void __fastcall SetTickMarks(TTickMark Value);
- void __fastcall SetLineSize(int Value);
- void __fastcall SetPageSize(int Value);
- void __fastcall SetSelStart(int Value);
- void __fastcall SetSelEnd(int Value);
- void __fastcall UpdateSelection(void);
- MESSAGE void __fastcall CNHScroll(Messages::TWMScroll &Message);
- MESSAGE void __fastcall CNVScroll(Messages::TWMScroll &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
-
- public:
- __fastcall virtual TTrackBar(Classes::TComponent* AOwner);
- void __fastcall SetTick(int Value);
-
- __published:
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property int LineSize = {read=FLineSize, write=SetLineSize, default=1};
- __property int Max = {read=FMax, write=SetMax, default=10};
- __property int Min = {read=FMin, write=SetMin, default=0};
- __property TTrackBarOrientation Orientation = {read=FOrientation, write=SetOrientation, nodefault};
-
- __property ParentCtl3D ;
- __property ParentShowHint ;
- __property int PageSize = {read=FPageSize, write=SetPageSize, default=2};
- __property PopupMenu ;
- __property int Frequency = {read=FFrequency, write=SetFrequency, nodefault};
- __property int Position = {read=FPosition, write=SetPosition, nodefault};
- __property int SelEnd = {read=FSelEnd, write=SetSelEnd, nodefault};
- __property int SelStart = {read=FSelStart, write=SetSelStart, nodefault};
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property TTickMark TickMarks = {read=FTickMarks, write=SetTickMarks, nodefault};
- __property TTickStyle TickStyle = {read=FTickStyle, write=SetTickStyle, nodefault};
- __property Visible ;
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TTrackBar(HWND ParentWindow) : Controls::TWinControl(ParentWindow
- ) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TTrackBar(void) { }
-
- };
-
- typedef int TProgressRange;
-
- class DELPHICLASS TProgressBar;
- class PASCALIMPLEMENTATION TProgressBar : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- int FMin;
- int FMax;
- int FStep;
- int FPosition;
- bool F32BitMode;
- int __fastcall GetMin(void);
- int __fastcall GetMax(void);
- int __fastcall GetPosition(void);
- void __fastcall SetParams(int AMin, int AMax);
- void __fastcall SetMin(int Value);
- void __fastcall SetMax(int Value);
- void __fastcall SetPosition(int Value);
- void __fastcall SetStep(int Value);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
-
- public:
- __fastcall virtual TProgressBar(Classes::TComponent* AOwner);
- void __fastcall StepIt(void);
- void __fastcall StepBy(int Delta);
-
- __published:
- __property Align ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Hint ;
- __property int Min = {read=GetMin, write=SetMin, nodefault};
- __property int Max = {read=GetMax, write=SetMax, nodefault};
- __property ParentShowHint ;
- __property PopupMenu ;
- __property int Position = {read=GetPosition, write=SetPosition, default=0};
- __property int Step = {read=FStep, write=SetStep, default=10};
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TProgressBar(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TProgressBar(void) { }
-
- };
-
- enum TAttributeType { atSelected, atDefaultText };
-
- enum TConsistentAttribute { caBold, caColor, caFace, caItalic, caSize, caStrikeOut, caUnderline, caProtected
- };
-
- typedef Set<TConsistentAttribute, caBold, caProtected> TConsistentAttributes;
-
- class DELPHICLASS TTextAttributes;
- class DELPHICLASS TCustomRichEdit;
- class DELPHICLASS TParaAttributes;
- enum TNumberingStyle { nsNone, nsBullet };
-
- class PASCALIMPLEMENTATION TParaAttributes : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TCustomRichEdit* RichEdit;
- void __fastcall GetAttributes(_paraformat &Paragraph);
- Classes::TAlignment __fastcall GetAlignment(void);
- int __fastcall GetFirstIndent(void);
- int __fastcall GetLeftIndent(void);
- int __fastcall GetRightIndent(void);
- TNumberingStyle __fastcall GetNumbering(void);
- int __fastcall GetTab(Byte Index);
- int __fastcall GetTabCount(void);
- void __fastcall InitPara(_paraformat &Paragraph);
- void __fastcall SetAlignment(Classes::TAlignment Value);
- void __fastcall SetAttributes(_paraformat &Paragraph);
- void __fastcall SetFirstIndent(int Value);
- void __fastcall SetLeftIndent(int Value);
- void __fastcall SetRightIndent(int Value);
- void __fastcall SetNumbering(TNumberingStyle Value);
- void __fastcall SetTab(Byte Index, int Value);
- void __fastcall SetTabCount(int Value);
-
- public:
- __fastcall TParaAttributes(TCustomRichEdit* AOwner);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- __property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, nodefault};
- __property int FirstIndent = {read=GetFirstIndent, write=SetFirstIndent, nodefault};
- __property int LeftIndent = {read=GetLeftIndent, write=SetLeftIndent, nodefault};
- __property TNumberingStyle Numbering = {read=GetNumbering, write=SetNumbering, nodefault};
- __property int RightIndent = {read=GetRightIndent, write=SetRightIndent, nodefault};
- __property int Tab[Byte Index] = {read=GetTab, write=SetTab};
- __property int TabCount = {read=GetTabCount, write=SetTabCount, nodefault};
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TParaAttributes(void) { }
-
- };
-
- typedef System::TMetaClass*TConversionClass;
-
- typedef void __fastcall (__closure *TRichEditResizeEvent)(System::TObject* Sender, const Windows::TRect
- &Rect);
-
- typedef void __fastcall (__closure *TRichEditProtectChange)(System::TObject* Sender, int StartPos, int
- EndPos, bool &AllowChange);
-
- typedef void __fastcall (__closure *TRichEditSaveClipboard)(System::TObject* Sender, int NumObjects,
- int NumChars, bool &SaveClipboard);
-
- enum TSearchType { stWholeWord, stMatchCase };
-
- typedef Set<TSearchType, stWholeWord, stMatchCase> TSearchTypes;
-
- class PASCALIMPLEMENTATION TCustomRichEdit : public Stdctrls::TCustomMemo
- {
- typedef Stdctrls::TCustomMemo inherited;
-
- private:
- int FLibHandle;
- bool FHideScrollBars;
- TTextAttributes* FSelAttributes;
- TTextAttributes* FDefAttributes;
- TParaAttributes* FParagraph;
- int FScreenLogPixels;
- Classes::TStrings* FRichEditStrings;
- Classes::TMemoryStream* FMemStream;
- Classes::TNotifyEvent FOnSelChange;
- bool FHideSelection;
- bool FModified;
- System::TMetaClass*FDefaultConverter;
- TRichEditResizeEvent FOnResizeRequest;
- TRichEditProtectChange FOnProtectChange;
- TRichEditSaveClipboard FOnSaveClipboard;
- Windows::TRect FPageRect;
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- bool __fastcall GetPlainText(void);
- bool __fastcall ProtectChange(int StartPos, int EndPos);
- bool __fastcall SaveClipboard(int NumObj, int NumChars);
- void __fastcall SetHideScrollBars(bool Value);
- HIDESBASE void __fastcall SetHideSelection(bool Value);
- void __fastcall SetPlainText(bool Value);
- void __fastcall SetRichEditStrings(Classes::TStrings* Value);
- void __fastcall SetDefAttributes(TTextAttributes* Value);
- void __fastcall SetSelAttributes(TTextAttributes* Value);
- HIDESBASE MESSAGE void __fastcall WMNCDestroy(Messages::TWMNoParams &Message);
- HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
- HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
- HIDESBASE MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- virtual void __fastcall RequestSize(const Windows::TRect &Rect);
- DYNAMIC void __fastcall SelectionChange(void);
- virtual void __fastcall DoSetMaxLength(int Value);
- virtual int __fastcall GetSelLength(void);
- virtual int __fastcall GetSelStart(void);
- virtual System::AnsiString __fastcall GetSelText(void);
- virtual void __fastcall SetSelLength(int Value);
- virtual void __fastcall SetSelStart(int Value);
- __property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
- __property bool HideScrollBars = {read=FHideScrollBars, write=SetHideScrollBars, default=1};
- __property Classes::TStrings* Lines = {read=FRichEditStrings, write=SetRichEditStrings};
- __property TRichEditSaveClipboard OnSaveClipboard = {read=FOnSaveClipboard, write=FOnSaveClipboard}
- ;
- __property Classes::TNotifyEvent OnSelectionChange = {read=FOnSelChange, write=FOnSelChange};
- __property TRichEditProtectChange OnProtectChange = {read=FOnProtectChange, write=FOnProtectChange}
- ;
- __property TRichEditResizeEvent OnResizeRequest = {read=FOnResizeRequest, write=FOnResizeRequest};
- __property bool PlainText = {read=GetPlainText, write=SetPlainText, default=0};
-
- public:
- __fastcall virtual TCustomRichEdit(Classes::TComponent* AOwner);
- __fastcall virtual ~TCustomRichEdit(void);
- virtual void __fastcall Clear(void);
- int __fastcall FindText(const System::AnsiString SearchStr, int StartPos, int Length, TSearchTypes
- Options);
- virtual int __fastcall GetSelTextBuf(char * Buffer, int BufSize);
- virtual void __fastcall Print(const System::AnsiString Caption);
- /* class method */ static void __fastcall RegisterConversionFormat(System::TMetaClass* vmt,
- const System::AnsiString AExtension, System::TMetaClass* AConversionClass);
- __property System::TMetaClass* DefaultConverter = {read=FDefaultConverter, write=FDefaultConverter}
- ;
- __property TTextAttributes* DefAttributes = {read=FDefAttributes, write=SetDefAttributes};
- __property TTextAttributes* SelAttributes = {read=FSelAttributes, write=SetSelAttributes};
- __property Windows::TRect PageRect = {read=FPageRect, write=FPageRect};
- __property TParaAttributes* Paragraph = {read=FParagraph};
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomRichEdit(HWND ParentWindow) : Stdctrls::TCustomMemo(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TTextAttributes : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TCustomRichEdit* RichEdit;
- TAttributeType FType;
- void __fastcall GetAttributes(Richedit::TCharFormatA &Format);
- Graphics::TFontCharset __fastcall GetCharset(void);
- Graphics::TColor __fastcall GetColor(void);
- TConsistentAttributes __fastcall GetConsistentAttributes(void);
- int __fastcall GetHeight(void);
- System::AnsiString __fastcall GetName(void);
- Graphics::TFontPitch __fastcall GetPitch(void);
- bool __fastcall GetProtected(void);
- int __fastcall GetSize(void);
- Graphics::TFontStyles __fastcall GetStyle(void);
- void __fastcall SetAttributes(Richedit::TCharFormatA &Format);
- void __fastcall SetCharset(Graphics::TFontCharset Value);
- void __fastcall SetColor(Graphics::TColor Value);
- void __fastcall SetHeight(int Value);
- void __fastcall SetName(System::AnsiString Value);
- void __fastcall SetPitch(Graphics::TFontPitch Value);
- void __fastcall SetProtected(bool Value);
- void __fastcall SetSize(int Value);
- void __fastcall SetStyle(Graphics::TFontStyles Value);
-
- protected:
- void __fastcall InitFormat(Richedit::TCharFormatA &Format);
- virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
-
- public:
- __fastcall TTextAttributes(TCustomRichEdit* AOwner, TAttributeType AttributeType);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- __property Graphics::TFontCharset Charset = {read=GetCharset, write=SetCharset, nodefault};
- __property Graphics::TColor Color = {read=GetColor, write=SetColor, nodefault};
- __property TConsistentAttributes ConsistentAttributes = {read=GetConsistentAttributes, nodefault};
- __property System::AnsiString Name = {read=GetName, write=SetName};
- __property Graphics::TFontPitch Pitch = {read=GetPitch, write=SetPitch, nodefault};
- __property bool Protected = {read=GetProtected, write=SetProtected, nodefault};
- __property int Size = {read=GetSize, write=SetSize, nodefault};
- __property Graphics::TFontStyles Style = {read=GetStyle, write=SetStyle, nodefault};
- __property int Height = {read=GetHeight, write=SetHeight, nodefault};
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TTextAttributes(void) { }
-
- };
-
- class DELPHICLASS TConversion;
- class PASCALIMPLEMENTATION TConversion : public System::TObject
- {
- typedef System::TObject inherited;
-
- public:
- virtual int __fastcall ConvertReadStream(Classes::TStream* Stream, char * Buffer, int BufSize);
- virtual int __fastcall ConvertWriteStream(Classes::TStream* Stream, char * Buffer, int BufSize);
- public:
-
- /* TObject.Create */ __fastcall TConversion(void) : System::TObject() { }
- /* TObject.Destroy */ __fastcall virtual ~TConversion(void) { }
-
- };
-
- struct TConversionFormat;
- typedef TConversionFormat *PConversionFormat;
-
- struct TConversionFormat
- {
- System::TMetaClass*ConversionClass;
- System::AnsiString Extension;
- TConversionFormat *Next;
- } ;
-
- struct TRichEditStreamInfo
- {
- TConversion* Converter;
- Classes::TStream* Stream;
- } ;
-
- typedef TRichEditStreamInfo *PRichEditStreamInfo;
-
- class DELPHICLASS TRichEdit;
- class PASCALIMPLEMENTATION TRichEdit : public Comctrls::TCustomRichEdit
- {
- typedef Comctrls::TCustomRichEdit inherited;
-
- __published:
- __property Align ;
- __property Alignment ;
- __property BorderStyle ;
- __property Color ;
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property HideSelection ;
- __property HideScrollBars ;
- __property ImeMode ;
- __property ImeName ;
- __property Lines ;
- __property MaxLength ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PlainText ;
- __property PopupMenu ;
- __property ReadOnly ;
- __property ScrollBars ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property WantTabs ;
- __property WantReturns ;
- __property WordWrap ;
- __property OnChange ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnResizeRequest ;
- __property OnSelectionChange ;
- __property OnStartDrag ;
- __property OnProtectChange ;
- __property OnSaveClipboard ;
- public:
- /* TCustomRichEdit.Create */ __fastcall virtual TRichEdit(Classes::TComponent* AOwner) : Comctrls::
- TCustomRichEdit(AOwner) { }
- /* TCustomRichEdit.Destroy */ __fastcall virtual ~TRichEdit(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TRichEdit(HWND ParentWindow) : Comctrls::TCustomRichEdit(
- ParentWindow) { }
-
- };
-
- enum TUDAlignButton { udLeft, udRight };
-
- enum TUDOrientation { udHorizontal, udVertical };
-
- enum TUDBtnType { btNext, btPrev };
-
- typedef void __fastcall (__closure *TUDClickEvent)(System::TObject* Sender, TUDBtnType Button);
-
- typedef void __fastcall (__closure *TUDChangingEvent)(System::TObject* Sender, bool &AllowChange);
-
- class DELPHICLASS TCustomUpDown;
- class PASCALIMPLEMENTATION TCustomUpDown : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- bool FArrowKeys;
- Controls::TWinControl* FAssociate;
- short FMin;
- short FMax;
- int FIncrement;
- short FPosition;
- bool FThousands;
- bool FWrap;
- TUDClickEvent FOnClick;
- TUDAlignButton FAlignButton;
- TUDOrientation FOrientation;
- TUDChangingEvent FOnChanging;
- void __fastcall UndoAutoResizing(Controls::TWinControl* Value);
- void __fastcall SetAssociate(Controls::TWinControl* Value);
- short __fastcall GetPosition(void);
- void __fastcall SetMin(short Value);
- void __fastcall SetMax(short Value);
- void __fastcall SetIncrement(int Value);
- void __fastcall SetPosition(short Value);
- void __fastcall SetAlignButton(TUDAlignButton Value);
- void __fastcall SetOrientation(TUDOrientation Value);
- void __fastcall SetArrowKeys(bool Value);
- void __fastcall SetThousands(bool Value);
- void __fastcall SetWrap(bool Value);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
-
- protected:
- bool __fastcall CanChange(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- HIDESBASEDYNAMIC void __fastcall Click(TUDBtnType Button);
- __property TUDAlignButton AlignButton = {read=FAlignButton, write=SetAlignButton, default=1};
- __property bool ArrowKeys = {read=FArrowKeys, write=SetArrowKeys, default=1};
- __property Controls::TWinControl* Associate = {read=FAssociate, write=SetAssociate};
- __property short Min = {read=FMin, write=SetMin, nodefault};
- __property short Max = {read=FMax, write=SetMax, default=100};
- __property int Increment = {read=FIncrement, write=SetIncrement, default=1};
- __property TUDOrientation Orientation = {read=FOrientation, write=SetOrientation, default=1};
- __property short Position = {read=GetPosition, write=SetPosition, nodefault};
- __property bool Thousands = {read=FThousands, write=SetThousands, default=1};
- __property bool Wrap = {read=FWrap, write=SetWrap, nodefault};
- __property TUDChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
- __property TUDClickEvent OnClick = {read=FOnClick, write=FOnClick};
-
- public:
- __fastcall virtual TCustomUpDown(Classes::TComponent* AOwner);
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomUpDown(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TCustomUpDown(void) { }
-
- };
-
- class DELPHICLASS TUpDown;
- class PASCALIMPLEMENTATION TUpDown : public Comctrls::TCustomUpDown
- {
- typedef Comctrls::TCustomUpDown inherited;
-
- __published:
- __property AlignButton ;
- __property Associate ;
- __property ArrowKeys ;
- __property Enabled ;
- __property Hint ;
- __property Min ;
- __property Max ;
- __property Increment ;
- __property Orientation ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property Position ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Thousands ;
- __property Visible ;
- __property Wrap ;
- __property OnChanging ;
- __property OnClick ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- public:
- /* TCustomUpDown.Create */ __fastcall virtual TUpDown(Classes::TComponent* AOwner) : Comctrls::TCustomUpDown(
- AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TUpDown(HWND ParentWindow) : Comctrls::TCustomUpDown(ParentWindow
- ) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TUpDown(void) { }
-
- };
-
- enum THKModifier { hkShift, hkCtrl, hkAlt, hkExt };
-
- typedef Set<THKModifier, hkShift, hkExt> THKModifiers;
-
- enum THKInvalidKey { hcNone, hcShift, hcCtrl, hcAlt, hcShiftCtrl, hcShiftAlt, hcCtrlAlt, hcShiftCtrlAlt
- };
-
- typedef Set<THKInvalidKey, hcNone, hcShiftCtrlAlt> THKInvalidKeys;
-
- class DELPHICLASS TCustomHotKey;
- class PASCALIMPLEMENTATION TCustomHotKey : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- bool FAutoSize;
- THKModifiers FModifiers;
- THKInvalidKeys FInvalidKeys;
- Word FHotKey;
- void __fastcall AdjustHeight(void);
- void __fastcall SetAutoSize(bool Value);
- void __fastcall SetInvalidKeys(THKInvalidKeys Value);
- void __fastcall SetModifiers(THKModifiers Value);
- void __fastcall UpdateHeight(void);
- Menus::TShortCut __fastcall GetHotKey(void);
- void __fastcall SetHotKey(Menus::TShortCut Value);
- void __fastcall ShortCutToHotKey(Menus::TShortCut Value);
- Menus::TShortCut __fastcall HotKeyToShortCut(int Value);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
- __property THKInvalidKeys InvalidKeys = {read=FInvalidKeys, write=SetInvalidKeys, nodefault};
- __property THKModifiers Modifiers = {read=FModifiers, write=SetModifiers, nodefault};
- __property Menus::TShortCut HotKey = {read=GetHotKey, write=SetHotKey, nodefault};
- __property TabStop ;
-
- public:
- __fastcall virtual TCustomHotKey(Classes::TComponent* AOwner);
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomHotKey(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TCustomHotKey(void) { }
-
- };
-
- class DELPHICLASS THotKey;
- class PASCALIMPLEMENTATION THotKey : public Comctrls::TCustomHotKey
- {
- typedef Comctrls::TCustomHotKey inherited;
-
- __published:
- __property AutoSize ;
- __property Enabled ;
- __property Hint ;
- __property HotKey ;
- __property InvalidKeys ;
- __property Modifiers ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- public:
- /* TCustomHotKey.Create */ __fastcall virtual THotKey(Classes::TComponent* AOwner) : Comctrls::TCustomHotKey(
- AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall THotKey(HWND ParentWindow) : Comctrls::TCustomHotKey(ParentWindow
- ) { }
- /* TWinControl.Destroy */ __fastcall virtual ~THotKey(void) { }
-
- };
-
- typedef int TWidth;
-
- class DELPHICLASS TListColumn;
- class PASCALIMPLEMENTATION TListColumn : public Classes::TCollectionItem
- {
- typedef Classes::TCollectionItem inherited;
-
- private:
- System::AnsiString FCaption;
- TAlignment FAlignment;
- TWidth FWidth;
- TWidth FPrivateWidth;
- void __fastcall DoChange(void);
- TWidth __fastcall GetWidth(void);
- void __fastcall ReadData(Classes::TReader* Reader);
- void __fastcall SetAlignment(Classes::TAlignment Value);
- void __fastcall SetCaption(const System::AnsiString Value);
- void __fastcall SetWidth(TWidth Value);
- void __fastcall WriteData(Classes::TWriter* Writer);
-
- protected:
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual System::AnsiString __fastcall GetDisplayName(void);
-
- public:
- __fastcall virtual TListColumn(Classes::TCollection* Collection);
- __fastcall virtual ~TListColumn(void);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- __property TWidth WidthType = {read=FWidth, nodefault};
-
- __published:
- __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
- __property System::AnsiString Caption = {read=FCaption, write=SetCaption};
- __property TWidth Width = {read=GetWidth, write=SetWidth, default=50};
- };
-
- class DELPHICLASS TListColumns;
- class DELPHICLASS TCustomListView;
- enum TViewStyle { vsIcon, vsSmallIcon, vsList, vsReport };
-
- class DELPHICLASS TListItems;
- class DELPHICLASS TListItem;
- class PASCALIMPLEMENTATION TListItems : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TCustomListView* FOwner;
- int FUpdateCount;
- bool FNoRedraw;
- void __fastcall ReadData(Classes::TStream* Stream);
- void __fastcall WriteData(Classes::TStream* Stream);
-
- protected:
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- tagLVITEMA __fastcall CreateItem(int Index, TListItem* ListItem);
- int __fastcall GetCount(void);
- HWND __fastcall GetHandle(void);
- TListItem* __fastcall GetItem(int Index);
- void __fastcall SetItem(int Index, TListItem* Value);
- void __fastcall SetUpdateState(bool Updating);
-
- public:
- __fastcall TListItems(TCustomListView* AOwner);
- __fastcall virtual ~TListItems(void);
- TListItem* __fastcall Add(void);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- void __fastcall BeginUpdate(void);
- void __fastcall Clear(void);
- void __fastcall Delete(int Index);
- void __fastcall EndUpdate(void);
- int __fastcall IndexOf(TListItem* Value);
- TListItem* __fastcall Insert(int Index);
- __property int Count = {read=GetCount, nodefault};
- __property HWND Handle = {read=GetHandle, nodefault};
- __property TListItem* Item[int Index] = {read=GetItem, write=SetItem/*, default*/};
- __property TCustomListView* Owner = {read=FOwner};
- };
-
- class DELPHICLASS TIconOptions;
- enum TIconArrangement { iaTop, iaLeft };
-
- class PASCALIMPLEMENTATION TIconOptions : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TCustomListView* FListView;
- TIconArrangement FArrangement;
- bool FAutoArrange;
- bool FWrapText;
- void __fastcall SetArrangement(TIconArrangement Value);
- void __fastcall SetAutoArrange(bool Value);
- void __fastcall SetWrapText(bool Value);
-
- public:
- __fastcall TIconOptions(TCustomListView* AOwner);
-
- __published:
- __property TIconArrangement Arrangement = {read=FArrangement, write=SetArrangement, default=0};
- __property bool AutoArrange = {read=FAutoArrange, write=SetAutoArrange, default=0};
- __property bool WrapText = {read=FWrapText, write=SetWrapText, default=1};
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TIconOptions(void) { }
-
- };
-
- enum TItemChange { ctText, ctImage, ctState };
-
- typedef void __fastcall (__closure *TLVChangeEvent)(System::TObject* Sender, TListItem* Item, TItemChange
- Change);
-
- typedef void __fastcall (__closure *TLVChangingEvent)(System::TObject* Sender, TListItem* Item, TItemChange
- Change, bool &AllowChange);
-
- typedef void __fastcall (__closure *TLVColumnClickEvent)(System::TObject* Sender, TListColumn* Column
- );
-
- typedef void __fastcall (__closure *TLVDeletedEvent)(System::TObject* Sender, TListItem* Item);
-
- typedef void __fastcall (__closure *TLVEditingEvent)(System::TObject* Sender, TListItem* Item, bool
- &AllowEdit);
-
- typedef void __fastcall (__closure *TLVEditedEvent)(System::TObject* Sender, TListItem* Item, System::AnsiString
- &S);
-
- typedef void __fastcall (__closure *TLVCompareEvent)(System::TObject* Sender, TListItem* Item1, TListItem*
- Item2, int Data, int &Compare);
-
- enum TListArrangement { arAlignBottom, arAlignLeft, arAlignRight, arAlignTop, arDefault, arSnapToGrid
- };
-
- enum TSearchDirection { sdLeft, sdRight, sdAbove, sdBelow, sdAll };
-
- enum TItemState { isNone, isCut, isDropHilited, isFocused, isSelected };
-
- typedef Set<TItemState, isNone, isSelected> TItemStates;
-
- class PASCALIMPLEMENTATION TCustomListView : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- TFormBorderStyle FBorderStyle;
- TViewStyle FViewStyle;
- bool FReadOnly;
- Controls::TImageList* FLargeImages;
- Controls::TImageList* FSmallImages;
- Controls::TImageList* FStateImages;
- Controls::TImageList* FDragImage;
- bool FMultiSelect;
- TSortType FSortType;
- bool FColumnClick;
- bool FShowColumnHeaders;
- TListItems* FListItems;
- bool FClicked;
- bool FRClicked;
- TIconOptions* FIconOptions;
- bool FHideSelection;
- TListColumns* FListColumns;
- Classes::TMemoryStream* FMemStream;
- Classes::TMemoryStream* FColStream;
- Classes::TMemoryStream* FCheckStream;
- void *FEditInstance;
- void *FDefEditProc;
- HWND FEditHandle;
- void *FHeaderInstance;
- void *FDefHeaderProc;
- HWND FHeaderHandle;
- int FAllocBy;
- int FDragIndex;
- TListItem* FLastDropTarget;
- bool FCheckboxes;
- bool FGridLines;
- bool FHotTrack;
- bool FRowSelect;
- Controls::TChangeLink* FLargeChangeLink;
- Controls::TChangeLink* FSmallChangeLink;
- Controls::TChangeLink* FStateChangeLink;
- TSortType FSavedSort;
- bool FReading;
- TLVChangeEvent FOnChange;
- TLVChangingEvent FOnChanging;
- TLVColumnClickEvent FOnColumnClick;
- TLVDeletedEvent FOnDeletion;
- TLVEditingEvent FOnEditing;
- TLVEditedEvent FOnEdited;
- TLVDeletedEvent FOnInsert;
- TLVCompareEvent FOnCompare;
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMDrag(Controls::TCMDrag &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- void __fastcall DoDragOver(Controls::TDragObject* Source, int X, int Y, bool CanDrop);
- void __fastcall EditWndProc(Messages::TMessage &Message);
- Windows::TRect __fastcall GetBoundingRect(void);
- TListColumn* __fastcall GetColumnFromIndex(int Index);
- TListItem* __fastcall GetDropTarget(void);
- TListItem* __fastcall GetFocused(void);
- TListItem* __fastcall GetItem(const tagLVITEMA &Value);
- int __fastcall GetSelCount(void);
- TListItem* __fastcall GetSelection(void);
- TListItem* __fastcall GetTopItem(void);
- tagPOINT __fastcall GetViewOrigin(void);
- int __fastcall GetVisibleRowCount(void);
- void __fastcall HeaderWndProc(Messages::TMessage &Message);
- void __fastcall ImageListChange(System::TObject* Sender);
- void __fastcall RestoreChecks(void);
- void __fastcall SaveChecks(void);
- void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
- void __fastcall SetColumnClick(bool Value);
- void __fastcall SetColumnHeaders(bool Value);
- void __fastcall SetDropTarget(TListItem* Value);
- void __fastcall SetFocused(TListItem* Value);
- void __fastcall SetHideSelection(bool Value);
- void __fastcall SetIconOptions(TIconOptions* Value);
- void __fastcall SetImageList(int Value, int Flags);
- void __fastcall SetLargeImages(Controls::TImageList* Value);
- void __fastcall SetAllocBy(int Value);
- void __fastcall SetItems(TListItems* Value);
- void __fastcall SetListColumns(TListColumns* Value);
- void __fastcall SetMultiSelect(bool Value);
- void __fastcall SetReadOnly(bool Value);
- void __fastcall SetSmallImages(Controls::TImageList* Value);
- void __fastcall SetSortType(TSortType Value);
- void __fastcall SetSelection(TListItem* Value);
- void __fastcall SetStateImages(Controls::TImageList* Value);
- void __fastcall SetTextBkColor(Graphics::TColor Value);
- void __fastcall SetTextColor(Graphics::TColor Value);
- void __fastcall SetViewStyle(TViewStyle Value);
- void __fastcall SetCheckboxes(bool Value);
- void __fastcall SetGridLines(bool Value);
- void __fastcall SetHotTrack(bool Value);
- void __fastcall SetRowSelect(bool Value);
- void __fastcall ResetExStyles(void);
- bool __fastcall ValidHeaderHandle(void);
- HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall WMParentNotify(Messages::TWMParentNotify &Message);
- HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
-
- protected:
- DYNAMIC bool __fastcall CanChange(TListItem* Item, int Change);
- DYNAMIC bool __fastcall CanEdit(TListItem* Item);
- DYNAMIC void __fastcall Change(TListItem* Item, int Change);
- DYNAMIC void __fastcall ColClick(TListColumn* Column);
- bool __fastcall ColumnsShowing(void);
- virtual TListItem* __fastcall CreateListItem(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall Delete(TListItem* Item);
- virtual void __fastcall DestroyWnd(void);
- DYNAMIC void __fastcall DoEndDrag(System::TObject* Target, int X, int Y);
- DYNAMIC void __fastcall DoStartDrag(Controls::TDragObject* &DragObject);
- DYNAMIC void __fastcall Edit(const tagLVITEMA &Item);
- virtual Controls::TCustomImageList* __fastcall GetDragImages(void);
- int __fastcall GetItemIndex(TListItem* Value);
- DYNAMIC void __fastcall InsertItem(TListItem* Item);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall UpdateColumn(int Index);
- void __fastcall UpdateColumns(void);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
- __property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
- __property TListColumns* Columns = {read=FListColumns, write=SetListColumns};
- __property bool ColumnClick = {read=FColumnClick, write=SetColumnClick, default=1};
- __property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, nodefault};
- __property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
- __property TIconOptions* IconOptions = {read=FIconOptions, write=SetIconOptions};
- __property TListItems* Items = {read=FListItems, write=SetItems};
- __property int AllocBy = {read=FAllocBy, write=SetAllocBy, default=0};
- __property Controls::TImageList* LargeImages = {read=FLargeImages, write=SetLargeImages};
- __property bool MultiSelect = {read=FMultiSelect, write=SetMultiSelect, default=0};
- __property TLVChangeEvent OnChange = {read=FOnChange, write=FOnChange};
- __property TLVChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
- __property TLVColumnClickEvent OnColumnClick = {read=FOnColumnClick, write=FOnColumnClick};
- __property TLVCompareEvent OnCompare = {read=FOnCompare, write=FOnCompare};
- __property TLVDeletedEvent OnDeletion = {read=FOnDeletion, write=FOnDeletion};
- __property TLVEditedEvent OnEdited = {read=FOnEdited, write=FOnEdited};
- __property TLVEditingEvent OnEditing = {read=FOnEditing, write=FOnEditing};
- __property TLVDeletedEvent OnInsert = {read=FOnInsert, write=FOnInsert};
- __property bool ShowColumnHeaders = {read=FShowColumnHeaders, write=SetColumnHeaders, default=1};
- __property Controls::TImageList* SmallImages = {read=FSmallImages, write=SetSmallImages};
- __property TSortType SortType = {read=FSortType, write=SetSortType, default=0};
- __property Controls::TImageList* StateImages = {read=FStateImages, write=SetStateImages};
- __property TViewStyle ViewStyle = {read=FViewStyle, write=SetViewStyle, default=0};
-
- public:
- __fastcall virtual TCustomListView(Classes::TComponent* AOwner);
- __fastcall virtual ~TCustomListView(void);
- bool __fastcall AlphaSort(void);
- void __fastcall Arrange(TListArrangement Code);
- TListItem* __fastcall FindCaption(int StartIndex, System::AnsiString Value, bool Partial, bool Inclusive
- , bool Wrap);
- TListItem* __fastcall FindData(int StartIndex, void * Value, bool Inclusive, bool Wrap);
- TListItem* __fastcall GetItemAt(int X, int Y);
- TListItem* __fastcall GetNearestItem(const tagPOINT &Point, TSearchDirection Direction);
- TListItem* __fastcall GetNextItem(TListItem* StartItem, TSearchDirection Direction, TItemStates States
- );
- System::AnsiString __fastcall GetSearchString(void);
- bool __fastcall IsEditing(void);
- void __fastcall Scroll(int DX, int DY);
- __property bool Checkboxes = {read=FCheckboxes, write=SetCheckboxes, default=0};
- __property TListColumn* Column[int Index] = {read=GetColumnFromIndex};
- __property TListItem* DropTarget = {read=GetDropTarget, write=SetDropTarget};
- __property bool GridLines = {read=FGridLines, write=SetGridLines, default=0};
- __property bool HotTrack = {read=FHotTrack, write=SetHotTrack, default=0};
- __property TListItem* ItemFocused = {read=GetFocused, write=SetFocused};
- __property bool RowSelect = {read=FRowSelect, write=SetRowSelect, default=0};
- __property int SelCount = {read=GetSelCount, nodefault};
- __property TListItem* Selected = {read=GetSelection, write=SetSelection};
- bool __fastcall CustomSort(PFNLVCOMPARE SortProc, int lParam);
- int __fastcall StringWidth(System::AnsiString S);
- void __fastcall UpdateItems(int FirstIndex, int LastIndex);
- __property TListItem* TopItem = {read=GetTopItem};
- __property tagPOINT ViewOrigin = {read=GetViewOrigin};
- __property int VisibleRowCount = {read=GetVisibleRowCount, nodefault};
- __property Windows::TRect BoundingRect = {read=GetBoundingRect};
- public:
- /* TWinControl.CreateParented */ __fastcall TCustomListView(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TListColumns : public Classes::TCollection
- {
- typedef Classes::TCollection inherited;
-
- private:
- TCustomListView* FOwner;
- HIDESBASE TListColumn* __fastcall GetItem(int Index);
- HIDESBASE void __fastcall SetItem(int Index, TListColumn* Value);
-
- protected:
- DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
- virtual void __fastcall Update(Classes::TCollectionItem* Item);
-
- public:
- __fastcall TListColumns(TCustomListView* AOwner);
- HIDESBASE TListColumn* __fastcall Add(void);
- __property TCustomListView* Owner = {read=FOwner};
- __property TListColumn* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
- public:
- /* TCollection.Destroy */ __fastcall virtual ~TListColumns(void) { }
-
- };
-
- enum TDisplayCode { drBounds, drIcon, drLabel, drSelectBounds };
-
- class PASCALIMPLEMENTATION TListItem : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TListItems* FOwner;
- Classes::TStrings* FSubItems;
- void *FData;
- int FImageIndex;
- int FOverlayIndex;
- int FStateIndex;
- System::AnsiString FCaption;
- bool FDeleting;
- bool FProcessedDeleting;
- bool FChecked;
- bool __fastcall GetChecked(void);
- HWND __fastcall GetHandle(void);
- int __fastcall GetIndex(void);
- TCustomListView* __fastcall GetListView(void);
- int __fastcall GetLeft(void);
- bool __fastcall GetState(int Index);
- int __fastcall GetTop(void);
- bool __fastcall IsEqual(TListItem* Item);
- void __fastcall SetChecked(bool Value);
- void __fastcall SetCaption(const System::AnsiString Value);
- void __fastcall SetData(void * Value);
- void __fastcall SetImage(int Index, int Value);
- void __fastcall SetLeft(int Value);
- void __fastcall SetState(int Index, bool State);
- void __fastcall SetSubItems(Classes::TStrings* Value);
- void __fastcall SetTop(int Value);
-
- protected:
- virtual void __fastcall Assign(Classes::TPersistent* Source);
-
- public:
- __fastcall TListItem(TListItems* AOwner);
- __fastcall virtual ~TListItem(void);
- void __fastcall CancelEdit(void);
- void __fastcall Delete(void);
- Windows::TRect __fastcall DisplayRect(TDisplayCode Code);
- bool __fastcall EditCaption(void);
- tagPOINT __fastcall GetPosition(void);
- void __fastcall MakeVisible(bool PartialOK);
- void __fastcall Update(void);
- void __fastcall SetPosition(const tagPOINT &Value);
- __property System::AnsiString Caption = {read=FCaption, write=SetCaption};
- __property bool Checked = {read=GetChecked, write=SetChecked, nodefault};
- __property bool Cut = {read=GetState, write=SetState, index=0, nodefault};
- __property void * Data = {read=FData, write=SetData};
- __property bool DropTarget = {read=GetState, write=SetState, index=1, nodefault};
- __property bool Focused = {read=GetState, write=SetState, index=2, nodefault};
- __property HWND Handle = {read=GetHandle, nodefault};
- __property int ImageIndex = {read=FImageIndex, write=SetImage, index=0, nodefault};
- __property int Index = {read=GetIndex, nodefault};
- __property int Left = {read=GetLeft, write=SetLeft, nodefault};
- __property TCustomListView* ListView = {read=GetListView};
- __property TListItems* Owner = {read=FOwner};
- __property int OverlayIndex = {read=FOverlayIndex, write=SetImage, index=1, nodefault};
- __property bool Selected = {read=GetState, write=SetState, index=3, nodefault};
- __property int StateIndex = {read=FStateIndex, write=SetImage, index=2, nodefault};
- __property Classes::TStrings* SubItems = {read=FSubItems, write=SetSubItems};
- __property int Top = {read=GetTop, write=SetTop, nodefault};
- };
-
- class DELPHICLASS TListView;
- class PASCALIMPLEMENTATION TListView : public Comctrls::TCustomListView
- {
- typedef Comctrls::TCustomListView inherited;
-
- __published:
- __property Align ;
- __property BorderStyle ;
- __property Color ;
- __property ColumnClick ;
- __property OnClick ;
- __property OnDblClick ;
- __property Columns ;
- __property Ctl3D ;
- __property DragMode ;
- __property ReadOnly ;
- __property Enabled ;
- __property Font ;
- __property GridLines ;
- __property HideSelection ;
- __property HotTrack ;
- __property IconOptions ;
- __property Items ;
- __property Checkboxes ;
- __property AllocBy ;
- __property MultiSelect ;
- __property RowSelect ;
- __property OnChange ;
- __property OnChanging ;
- __property OnColumnClick ;
- __property OnCompare ;
- __property OnDeletion ;
- __property OnEdited ;
- __property OnEditing ;
- __property OnEnter ;
- __property OnExit ;
- __property OnInsert ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property DragCursor ;
- __property OnStartDrag ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property ShowHint ;
- __property PopupMenu ;
- __property ShowColumnHeaders ;
- __property SortType ;
- __property TabOrder ;
- __property TabStop ;
- __property ViewStyle ;
- __property Visible ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property LargeImages ;
- __property SmallImages ;
- __property StateImages ;
- public:
- /* TCustomListView.Create */ __fastcall virtual TListView(Classes::TComponent* AOwner) : Comctrls::
- TCustomListView(AOwner) { }
- /* TCustomListView.Destroy */ __fastcall virtual ~TListView(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TListView(HWND ParentWindow) : Comctrls::TCustomListView(
- ParentWindow) { }
-
- };
-
- enum TCommonAVI { aviNone, aviFindFolder, aviFindFile, aviFindComputer, aviCopyFiles, aviCopyFile, aviRecycleFile,
- aviEmptyRecycle, aviDeleteFile };
-
- class DELPHICLASS TAnimate;
- class PASCALIMPLEMENTATION TAnimate : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- bool FActive;
- bool FAutoSize;
- System::AnsiString FFileName;
- bool FCenter;
- TCommonAVI FCommonAVI;
- int FFrameCount;
- int FFrameHeight;
- int FFrameWidth;
- bool FOpen;
- bool FRecreateNeeded;
- int FRepetitions;
- int FResHandle;
- int FResId;
- System::AnsiString FResName;
- bool FStreamedActive;
- bool FTimers;
- bool FTransparent;
- short FStartFrame;
- short FStopFrame;
- int FStopCount;
- Classes::TNotifyEvent FOnOpen;
- Classes::TNotifyEvent FOnClose;
- Classes::TNotifyEvent FOnStart;
- Classes::TNotifyEvent FOnStop;
- void __fastcall AdjustSize(void);
- void __fastcall CheckOpen(void);
- bool __fastcall InternalClose(void);
- bool __fastcall InternalOpen(void);
- void __fastcall GetAnimateParams(void *Params);
- int __fastcall GetActualResHandle(void);
- int __fastcall GetActualResId(void);
- void __fastcall GetFrameInfo(void);
- void __fastcall SetAnimateParams(const void *Params);
- void __fastcall SetActive(bool Value);
- void __fastcall SetAutoSize(bool Value);
- void __fastcall SetFileName(System::AnsiString Value);
- void __fastcall SetCenter(bool Value);
- void __fastcall SetCommonAVI(TCommonAVI Value);
- void __fastcall SetOpen(bool Value);
- void __fastcall SetRepetitions(int Value);
- void __fastcall SetResHandle(int Value);
- void __fastcall SetResId(int Value);
- void __fastcall SetResName(System::AnsiString Value);
- void __fastcall SetTimers(bool Value);
- void __fastcall SetTransparent(bool Value);
- void __fastcall SetStartFrame(short Value);
- void __fastcall SetStopFrame(short Value);
- void __fastcall UpdateActiveState(void);
- MESSAGE void __fastcall WMNCCalcSize(Messages::TWMNCCalcSize &Message);
- HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Message);
- MESSAGE void __fastcall WMNCPaint(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- HIDESBASE MESSAGE void __fastcall WMWindowPosChanged(Messages::TWMWindowPosMsg &Message);
- MESSAGE void __fastcall WMWindowPosChanging(Messages::TWMWindowPosMsg &Message);
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- virtual void __fastcall DoOpen(void);
- virtual void __fastcall DoClose(void);
- virtual void __fastcall DoStart(void);
- virtual void __fastcall DoStop(void);
- virtual void __fastcall Loaded(void);
-
- public:
- __fastcall virtual TAnimate(Classes::TComponent* AOwner);
- __property int FrameCount = {read=FFrameCount, nodefault};
- __property int FrameHeight = {read=FFrameHeight, nodefault};
- __property int FrameWidth = {read=FFrameWidth, nodefault};
- __property bool Open = {read=FOpen, write=SetOpen, nodefault};
- void __fastcall Play(Word FromFrame, Word ToFrame, int Count);
- void __fastcall Reset(void);
- void __fastcall Seek(short Frame);
- void __fastcall Stop(void);
- __property int ResHandle = {read=FResHandle, write=SetResHandle, nodefault};
- __property int ResId = {read=FResId, write=SetResId, nodefault};
- __property System::AnsiString ResName = {read=FResName, write=SetResName};
-
- __published:
- __property bool Active = {read=FActive, write=SetActive, nodefault};
- __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
- __property Align ;
- __property bool Center = {read=FCenter, write=SetCenter, default=1};
- __property Color ;
- __property TCommonAVI CommonAVI = {read=FCommonAVI, write=SetCommonAVI, default=0};
- __property System::AnsiString FileName = {read=FFileName, write=SetFileName};
- __property ParentColor ;
- __property ParentShowHint ;
- __property int Repetitions = {read=FRepetitions, write=SetRepetitions, default=0};
- __property ShowHint ;
- __property short StartFrame = {read=FStartFrame, write=SetStartFrame, default=1};
- __property short StopFrame = {read=FStopFrame, write=SetStopFrame, default=0};
- __property bool Timers = {read=FTimers, write=SetTimers, default=0};
- __property bool Transparent = {read=FTransparent, write=SetTransparent, default=1};
- __property Visible ;
- __property Classes::TNotifyEvent OnOpen = {read=FOnOpen, write=FOnOpen};
- __property Classes::TNotifyEvent OnClose = {read=FOnClose, write=FOnClose};
- __property Classes::TNotifyEvent OnStart = {read=FOnStart, write=FOnStart};
- __property Classes::TNotifyEvent OnStop = {read=FOnStop, write=FOnStop};
- public:
- /* TWinControl.CreateParented */ __fastcall TAnimate(HWND ParentWindow) : Controls::TWinControl(ParentWindow
- ) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TAnimate(void) { }
-
- };
-
- enum TToolButtonStyle { tbsButton, tbsCheck, tbsDropDown, tbsSeparator, tbsDivider };
-
- enum TToolButtonState { tbsChecked, tbsPressed, tbsEnabled, tbsHidden, tbsIndeterminate, tbsWrap };
-
- class DELPHICLASS TToolButton;
- class DELPHICLASS TToolBar;
- class PASCALIMPLEMENTATION TToolBar : public Toolwin::TToolWindow
- {
- typedef Toolwin::TToolWindow inherited;
-
- private:
- bool FAutoSize;
- int FButtonWidth;
- int FButtonHeight;
- Classes::TList* FButtons;
- bool FShowCaptions;
- bool FList;
- bool FFlat;
- bool FWrapable;
- Controls::TImageList* FImages;
- Controls::TChangeLink* FImageChangeLink;
- Controls::TImageList* FDisabledImages;
- Controls::TChangeLink* FDisabledImageChangeLink;
- Controls::TImageList* FHotImages;
- Controls::TChangeLink* FHotImageChangeLink;
- int FIndent;
- bool FNewStyle;
- Graphics::TBitmap* FNullBitmap;
- HBITMAP FOldHandle;
- int FUpdateCount;
- int FHeightMargin;
- Classes::TNotifyEvent FOnResize;
- void __fastcall AdjustSize(void);
- int __fastcall ButtonIndex(int OldIndex, int ALeft, int ATop);
- void __fastcall LoadImages(Controls::TImageList* AImages);
- void __fastcall SetAutoSize(bool Value);
- TToolButton* __fastcall GetButton(int Index);
- int __fastcall GetButtonCount(void);
- void __fastcall GetButtonSize(int &AWidth, int &AHeight);
- int __fastcall GetRowCount(void);
- void __fastcall SetList(bool Value);
- void __fastcall SetShowCaptions(bool Value);
- void __fastcall SetFlat(bool Value);
- void __fastcall SetWrapable(bool Value);
- void __fastcall InsertButton(Controls::TControl* Control);
- void __fastcall RemoveButton(Controls::TControl* Control);
- void __fastcall UpdateButton(int Index);
- void __fastcall UpdateButtons(void);
- void __fastcall UpdateButtonState(int Index);
- void __fastcall UpdateButtonStates(void);
- void __fastcall UpdateItem(int Message, int FromIndex, int ToIndex);
- void __fastcall CreateButtons(int NewWidth, int NewHeight);
- void __fastcall SetButtonWidth(int Value);
- void __fastcall SetButtonHeight(int Value);
- void __fastcall UpdateImages(void);
- void __fastcall ImageListChange(System::TObject* Sender);
- void __fastcall SetImageList(int Value);
- void __fastcall SetImages(Controls::TImageList* Value);
- void __fastcall DisabledImageListChange(System::TObject* Sender);
- void __fastcall SetDisabledImageList(int Value);
- void __fastcall SetDisabledImages(Controls::TImageList* Value);
- void __fastcall HotImageListChange(System::TObject* Sender);
- void __fastcall SetHotImageList(int Value);
- void __fastcall SetHotImages(Controls::TImageList* Value);
- void __fastcall SetIndent(int Value);
- void __fastcall AdjustControl(Controls::TControl* Control);
- void __fastcall RecreateButtons(void);
- void __fastcall BeginUpdate(void);
- void __fastcall EndUpdate(void);
- void __fastcall ResizeButtons(void);
- int __fastcall InternalButtonCount(void);
- bool __fastcall ReorderButton(int OldIndex, int ALeft, int ATop);
- HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
- MESSAGE void __fastcall WMNotifyFormat(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- HIDESBASE MESSAGE void __fastcall WMWindowPosChanged(Messages::TWMWindowPosMsg &Message);
- MESSAGE void __fastcall WMWindowPosChanging(Messages::TWMWindowPosMsg &Message);
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CMControlChange(Controls::TCMControlChange &Message);
- HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMSysFontChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNRequestAlign(Messages::TMessage &Message);
-
- protected:
- virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall RepositionButton(int Index);
- void __fastcall RepositionButtons(int Index);
- DYNAMIC void __fastcall Resize(void);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
-
- public:
- __fastcall virtual TToolBar(Classes::TComponent* AOwner);
- __fastcall virtual ~TToolBar(void);
- __property int ButtonCount = {read=GetButtonCount, nodefault};
- __property TToolButton* Buttons[int Index] = {read=GetButton};
- __property int RowCount = {read=GetRowCount, nodefault};
-
- __published:
- __property Align ;
- __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
- __property BorderWidth ;
- __property int ButtonHeight = {read=FButtonHeight, write=SetButtonHeight, default=22};
- __property int ButtonWidth = {read=FButtonWidth, write=SetButtonWidth, default=23};
- __property Color ;
- __property Ctl3D ;
- __property Controls::TImageList* DisabledImages = {read=FDisabledImages, write=SetDisabledImages};
- __property DragCursor ;
- __property DragMode ;
- __property EdgeBorders ;
- __property EdgeInner ;
- __property EdgeOuter ;
- __property Enabled ;
- __property bool Flat = {read=FFlat, write=SetFlat, default=0};
- __property Font ;
- __property Height ;
- __property Controls::TImageList* HotImages = {read=FHotImages, write=SetHotImages};
- __property Controls::TImageList* Images = {read=FImages, write=SetImages};
- __property int Indent = {read=FIndent, write=SetIndent, default=0};
- __property bool List = {read=FList, write=SetList, default=0};
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property bool ShowCaptions = {read=FShowCaptions, write=SetShowCaptions, default=0};
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property bool Wrapable = {read=FWrapable, write=SetWrapable, default=1};
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TToolBar(HWND ParentWindow) : Toolwin::TToolWindow(ParentWindow
- ) { }
-
- };
-
- class PASCALIMPLEMENTATION TToolButton : public Controls::TGraphicControl
- {
- typedef Controls::TGraphicControl inherited;
-
- private:
- bool FAllowAllUp;
- bool FDown;
- bool FGrouped;
- int FImageIndex;
- bool FIndeterminate;
- Menus::TPopupMenu* FDropdownMenu;
- bool FWrap;
- TToolButtonStyle FStyle;
- int FUpdateCount;
- bool __fastcall CheckMenuDropdown(void);
- Byte __fastcall GetButtonState(void);
- int __fastcall GetIndex(void);
- void __fastcall SetButtonState(Byte State);
- void __fastcall SetDown(bool Value);
- void __fastcall SetDropdownMenu(Menus::TPopupMenu* Value);
- void __fastcall SetGrouped(bool Value);
- void __fastcall SetImageIndex(int Value);
- void __fastcall SetIndeterminate(bool Value);
- void __fastcall SetStyle(TToolButtonStyle Value);
- void __fastcall SetWrap(bool Value);
- HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMVisibleChanged(Messages::TMessage &Message);
-
- protected:
- TToolBar* FToolBar;
- virtual void __fastcall BeginUpdate(void);
- virtual void __fastcall EndUpdate(void);
- DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
- int Y);
- DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
- DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int
- Y);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- virtual void __fastcall Paint(void);
- virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
- void __fastcall SetToolBar(TToolBar* AToolBar);
- virtual void __fastcall UpdateControl(void);
- __property int Index = {read=GetIndex, nodefault};
-
- public:
- __fastcall virtual TToolButton(Classes::TComponent* AOwner);
- DYNAMIC void __fastcall Click(void);
-
- __published:
- __property bool AllowAllUp = {read=FAllowAllUp, write=FAllowAllUp, default=0};
- __property Caption ;
- __property bool Down = {read=FDown, write=SetDown, default=0};
- __property DragCursor ;
- __property DragMode ;
- __property Menus::TPopupMenu* DropdownMenu = {read=FDropdownMenu, write=SetDropdownMenu};
- __property Enabled ;
- __property bool Grouped = {read=FGrouped, write=SetGrouped, default=0};
- __property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
- __property bool Indeterminate = {read=FIndeterminate, write=SetIndeterminate, default=0};
- __property ParentShowHint ;
- __property PopupMenu ;
- __property bool Wrap = {read=FWrap, write=SetWrap, default=0};
- __property ShowHint ;
- __property TToolButtonStyle Style = {read=FStyle, write=SetStyle, default=0};
- __property Visible ;
- __property OnClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TGraphicControl.Destroy */ __fastcall virtual ~TToolButton(void) { }
-
- };
-
- class DELPHICLASS TCoolBand;
- class DELPHICLASS TCoolBar;
- class PASCALIMPLEMENTATION TCoolBand : public Classes::TCollectionItem
- {
- typedef Classes::TCollectionItem inherited;
-
- private:
- TFormBorderStyle FBorderStyle;
- bool FBreak;
- bool FFixedSize;
- bool FVisible;
- bool FHorizontalOnly;
- int FImageIndex;
- bool FFixedBackground;
- int FMinHeight;
- int FMinWidth;
- Graphics::TColor FColor;
- Controls::TWinControl* FControl;
- bool FParentColor;
- bool FParentBitmap;
- Graphics::TBitmap* FBitmap;
- System::AnsiString FText;
- int FWidth;
- Graphics::TBitmap* FDDB;
- int FID;
- TCoolBar* __fastcall CoolBar(void);
- bool __fastcall IsColorStored(void);
- bool __fastcall IsBitmapStored(void);
- void __fastcall BitmapChanged(System::TObject* Sender);
- int __fastcall GetHeight(void);
- bool __fastcall GetVisible(void);
- void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
- void __fastcall SetBreak(bool Value);
- void __fastcall SetFixedSize(bool Value);
- void __fastcall SetMinHeight(int Value);
- void __fastcall SetMinWidth(int Value);
- void __fastcall SetVisible(bool Value);
- void __fastcall SetHorizontalOnly(bool Value);
- void __fastcall SetImageIndex(int Value);
- void __fastcall SetFixedBackground(bool Value);
- void __fastcall SetColor(Graphics::TColor Value);
- void __fastcall SetControl(Controls::TWinControl* Value);
- void __fastcall SetParentColor(bool Value);
- void __fastcall SetParentBitmap(bool Value);
- void __fastcall SetBitmap(Graphics::TBitmap* Value);
- void __fastcall SetText(const System::AnsiString Value);
- void __fastcall SetWidth(int Value);
-
- protected:
- virtual System::AnsiString __fastcall GetDisplayName(void);
- DYNAMIC void __fastcall ParentColorChanged(void);
- DYNAMIC void __fastcall ParentBitmapChanged(void);
-
- public:
- __fastcall virtual TCoolBand(Classes::TCollection* Collection);
- __fastcall virtual ~TCoolBand(void);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- __property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
- __property int Height = {read=GetHeight, nodefault};
-
- __published:
- __property Graphics::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap, stored=IsBitmapStored};
- __property bool Break = {read=FBreak, write=SetBreak, default=1};
- __property Graphics::TColor Color = {read=FColor, write=SetColor, stored=IsColorStored, default=-2147483633
- };
- __property Controls::TWinControl* Control = {read=FControl, write=SetControl};
- __property bool FixedBackground = {read=FFixedBackground, write=SetFixedBackground, default=1};
- __property bool FixedSize = {read=FFixedSize, write=SetFixedSize, default=0};
- __property bool HorizontalOnly = {read=FHorizontalOnly, write=SetHorizontalOnly, default=0};
- __property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
- __property int MinHeight = {read=FMinHeight, write=SetMinHeight, default=25};
- __property int MinWidth = {read=FMinWidth, write=SetMinWidth, default=0};
- __property bool ParentColor = {read=FParentColor, write=SetParentColor, default=1};
- __property bool ParentBitmap = {read=FParentBitmap, write=SetParentBitmap, default=1};
- __property System::AnsiString Text = {read=FText, write=SetText};
- __property bool Visible = {read=GetVisible, write=SetVisible, default=1};
- __property int Width = {read=FWidth, write=SetWidth, nodefault};
- };
-
- class DELPHICLASS TCoolBands;
- class PASCALIMPLEMENTATION TCoolBands : public Classes::TCollection
- {
- typedef Classes::TCollection inherited;
-
- private:
- TCoolBar* FCoolBar;
- int FVisibleCount;
- HIDESBASE TCoolBand* __fastcall GetItem(int Index);
- HIDESBASE void __fastcall SetItem(int Index, TCoolBand* Value);
-
- protected:
- DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
- virtual void __fastcall Update(Classes::TCollectionItem* Item);
- TCoolBand* __fastcall FindBand(Controls::TControl* AControl);
- bool __fastcall HaveGraphic(void);
-
- public:
- __fastcall TCoolBands(TCoolBar* CoolBar);
- HIDESBASE TCoolBand* __fastcall Add(void);
- __property TCoolBar* CoolBar = {read=FCoolBar};
- __property TCoolBand* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
- public:
- /* TCollection.Destroy */ __fastcall virtual ~TCoolBands(void) { }
-
- };
-
- class PASCALIMPLEMENTATION TCoolBar : public Toolwin::TToolWindow
- {
- typedef Toolwin::TToolWindow inherited;
-
- private:
- bool FAutoSize;
- TCoolBands* FBands;
- TFormBorderStyle FBandBorderStyle;
- Graphics::TBitmap* FBitmap;
- Graphics::TFont* FCaptionFont;
- int FCaptionFontHeight;
- Graphics::TBitmap* FDDB;
- bool FFixedSize;
- bool FFixedOrder;
- Controls::TImageList* FImages;
- Controls::TChangeLink* FImageChangeLink;
- bool FShowText;
- bool FVertical;
- Windows::TSmallPoint FTrackDrag;
- int FUpdateCount;
- Classes::TNotifyEvent FOnChange;
- Classes::TNotifyEvent FOnResize;
- void __fastcall AdjustSize(void);
- void __fastcall BeginUpdate(void);
- void __fastcall BitmapChanged(System::TObject* Sender);
- void __fastcall DisableBands(void);
- void __fastcall EndUpdate(void);
- bool __fastcall IsAutoSized(void);
- bool __fastcall IsBackgroundDirty(void);
- Controls::TAlign __fastcall GetAlign(void);
- HFONT __fastcall GetCaptionFont(void);
- int __fastcall GetCaptionFontHeight(void);
- int __fastcall GetCaptionSize(TCoolBand* Band);
- int __fastcall GetRowHeight(int Index);
- HIDESBASE void __fastcall SetAlign(Controls::TAlign Value);
- void __fastcall SetAutoSize(bool Value);
- void __fastcall SetBands(TCoolBands* Value);
- void __fastcall SetBandBorderStyle(Forms::TBorderStyle Value);
- void __fastcall SetBitmap(Graphics::TBitmap* Value);
- void __fastcall SetFixedSize(bool Value);
- void __fastcall SetFixedOrder(bool Value);
- void __fastcall SetImageList(int Value);
- void __fastcall SetImages(Controls::TImageList* Value);
- void __fastcall SetShowText(bool Value);
- void __fastcall SetVertical(bool Value);
- void __fastcall ImageListChange(System::TObject* Sender);
- int __fastcall PtInGripRect(const tagPOINT &Pos);
- bool __fastcall ReadBands(void);
- bool __fastcall UpdateItem(int Message, int FromIndex, int ToIndex);
- void __fastcall UpdateBand(int Index);
- void __fastcall UpdateBands(void);
- MESSAGE void __fastcall WMCaptureChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
- HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMNotifyFormat(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- HIDESBASE MESSAGE void __fastcall WMWindowPosChanged(Messages::TWMWindowPosMsg &Message);
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CMControlChange(Controls::TCMControlChange &Message);
- HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Message);
- MESSAGE void __fastcall CNBandChange(Messages::TMessage &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
- HIDESBASE MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMSysFontChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMWinIniChange(Messages::TWMWinIniChange &Message);
-
- protected:
- virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
- DYNAMIC void __fastcall Change(void);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC HPALETTE __fastcall GetPalette(void);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- DYNAMIC void __fastcall Resize(void);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
-
- public:
- __fastcall virtual TCoolBar(Classes::TComponent* AOwner);
- __fastcall virtual ~TCoolBar(void);
-
- __published:
- __property Align = {read=GetAlign, write=SetAlign, default=1};
- __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
- __property Forms::TBorderStyle BandBorderStyle = {read=FBandBorderStyle, write=SetBandBorderStyle,
- default=1};
- __property TCoolBands* Bands = {read=FBands, write=SetBands};
- __property BorderWidth ;
- __property Color ;
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property EdgeBorders ;
- __property EdgeInner ;
- __property EdgeOuter ;
- __property Enabled ;
- __property bool FixedSize = {read=FFixedSize, write=SetFixedSize, default=0};
- __property bool FixedOrder = {read=FFixedOrder, write=SetFixedOrder, default=0};
- __property Font ;
- __property Controls::TImageList* Images = {read=FImages, write=SetImages};
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property Graphics::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap};
- __property PopupMenu ;
- __property ShowHint ;
- __property bool ShowText = {read=FShowText, write=SetShowText, default=1};
- __property bool Vertical = {read=FVertical, write=SetVertical, default=0};
- __property Visible ;
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TCoolBar(HWND ParentWindow) : Toolwin::TToolWindow(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS EDateTimeError;
- class PASCALIMPLEMENTATION EDateTimeError : public Sysutils::Exception
- {
- typedef Sysutils::Exception inherited;
-
- public:
- /* Exception.Create */ __fastcall EDateTimeError(const System::AnsiString Msg) : Sysutils::Exception(
- Msg) { }
- /* Exception.CreateFmt */ __fastcall EDateTimeError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
- /* Exception.CreateRes */ __fastcall EDateTimeError(int Ident, Extended Dummy) : Sysutils::Exception(
- Ident, Dummy) { }
- /* Exception.CreateResFmt */ __fastcall EDateTimeError(int Ident, const System::TVarRec * Args, const
- int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
- /* Exception.CreateHelp */ __fastcall EDateTimeError(const System::AnsiString Msg, int AHelpContext
- ) : Sysutils::Exception(Msg, AHelpContext) { }
- /* Exception.CreateFmtHelp */ __fastcall EDateTimeError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
- ) { }
- /* Exception.CreateResHelp */ __fastcall EDateTimeError(int Ident, int AHelpContext) : Sysutils::Exception(
- Ident, AHelpContext) { }
- /* Exception.CreateResFmtHelp */ __fastcall EDateTimeError(int Ident, const System::TVarRec * Args,
- const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext)
- { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~EDateTimeError(void) { }
-
- };
-
- enum TDateTimeKind { dtkDate, dtkTime };
-
- enum TDTDateMode { dmComboBox, dmUpDown };
-
- enum TDTDateFormat { dfShort, dfLong };
-
- enum TDTCalAlignment { dtaLeft, dtaRight };
-
- typedef void __fastcall (__closure *TDTParseInputEvent)(System::TObject* Sender, const System::AnsiString
- UserString, System::TDateTime &DateAndTime, bool &AllowChange);
-
- class DELPHICLASS TDateTimeColors;
- class DELPHICLASS TDateTimePicker;
- class PASCALIMPLEMENTATION TDateTimePicker : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- TDTCalAlignment FCalAlignment;
- TDateTimeColors* FCalColors;
- bool FChecked;
- System::TDateTime FDateTime;
- TDTDateFormat FDateFormat;
- TDTDateMode FDateMode;
- bool FDroppedDown;
- TDateTimeKind FKind;
- _SYSTEMTIME FLastChange;
- bool FParseInput;
- TDate FMaxDate;
- TDate FMinDate;
- bool FShowCheckbox;
- TDTParseInputEvent FOnUserInput;
- Classes::TNotifyEvent FOnCloseUp;
- Classes::TNotifyEvent FOnChange;
- Classes::TNotifyEvent FOnDropDown;
- void __fastcall AdjustHeight(void);
- TDate __fastcall GetDate(void);
- TTime __fastcall GetTime(void);
- void __fastcall SetCalAlignment(TDTCalAlignment Value);
- void __fastcall SetCalColors(TDateTimeColors* Value);
- void __fastcall SetChecked(bool Value);
- void __fastcall SetDate(TDate Value);
- void __fastcall SetDateMode(TDTDateMode Value);
- void __fastcall SetDateFormat(TDTDateFormat Value);
- void __fastcall SetDateTime(System::TDateTime Value);
- void __fastcall SetKind(TDateTimeKind Value);
- void __fastcall SetParseInput(bool Value);
- void __fastcall SetMaxDate(TDate Value);
- void __fastcall SetMinDate(TDate Value);
- void __fastcall SetRange(System::TDateTime MinVal, System::TDateTime MaxVal);
- void __fastcall SetShowCheckbox(bool Value);
- void __fastcall SetTime(TTime Value);
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- DYNAMIC void __fastcall Change(void);
-
- public:
- __fastcall virtual TDateTimePicker(Classes::TComponent* AOwner);
- __fastcall virtual ~TDateTimePicker(void);
- __property System::TDateTime DateTime = {read=FDateTime, write=SetDateTime};
-
- __published:
- __property TDTCalAlignment CalAlignment = {read=FCalAlignment, write=SetCalAlignment, nodefault};
- __property TDateTimeColors* CalColors = {read=FCalColors, write=SetCalColors};
- __property TDate Date = {read=GetDate, write=SetDate};
- __property TTime Time = {read=GetTime, write=SetTime};
- __property bool ShowCheckbox = {read=FShowCheckbox, write=SetShowCheckbox, default=0};
- __property bool Checked = {read=FChecked, write=SetChecked, default=1};
- __property Color = {stored=true, default=-2147483643};
- __property TDTDateFormat DateFormat = {read=FDateFormat, write=SetDateFormat, nodefault};
- __property TDTDateMode DateMode = {read=FDateMode, write=SetDateMode, nodefault};
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property ImeMode ;
- __property ImeName ;
- __property TDateTimeKind Kind = {read=FKind, write=SetKind, nodefault};
- __property TDate MaxDate = {read=FMaxDate, write=SetMaxDate};
- __property TDate MinDate = {read=FMinDate, write=SetMinDate};
- __property bool ParseInput = {read=FParseInput, write=SetParseInput, nodefault};
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnClick ;
- __property Classes::TNotifyEvent OnCloseUp = {read=FOnCloseUp, write=FOnCloseUp};
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- __property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnStartDrag ;
- __property TDTParseInputEvent OnUserInput = {read=FOnUserInput, write=FOnUserInput};
- public:
- /* TWinControl.CreateParented */ __fastcall TDateTimePicker(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TDateTimeColors : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TDateTimePicker* Owner;
- Graphics::TColor FBackColor;
- Graphics::TColor FTextColor;
- Graphics::TColor FTitleBackColor;
- Graphics::TColor FTitleTextColor;
- Graphics::TColor FMonthBackColor;
- Graphics::TColor FTrailingTextColor;
- void __fastcall SetColor(int Index, Graphics::TColor Value);
- void __fastcall SetAllColors(void);
-
- public:
- __fastcall TDateTimeColors(TDateTimePicker* AOwner);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
-
- __published:
- __property Graphics::TColor BackColor = {read=FBackColor, write=SetColor, index=0, default=-2147483643
- };
- __property Graphics::TColor TextColor = {read=FTextColor, write=SetColor, index=1, default=-2147483640
- };
- __property Graphics::TColor TitleBackColor = {read=FTitleBackColor, write=SetColor, index=2, default=-2147483646
- };
- __property Graphics::TColor TitleTextColor = {read=FTitleTextColor, write=SetColor, index=3, default=16777215
- };
- __property Graphics::TColor MonthBackColor = {read=FMonthBackColor, write=SetColor, index=4, default=16777215
- };
- __property Graphics::TColor TrailingTextColor = {read=FTrailingTextColor, write=SetColor, index=5,
- default=-2147483629};
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TDateTimeColors(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define ColumnHeaderWidth (Shortint)(-2)
- #define ColumnTextWidth (Shortint)(-1)
- #define CN_REQUESTALIGN (Word)(5120)
- #define CN_BANDCHANGE (Word)(5120)
- #define ComCtlVersionIE3 (int)(262214)
- #define ComCtlVersionIE4 (int)(262215)
- extern PACKAGE bool __fastcall InitCommonControl(int CC);
- extern PACKAGE void __fastcall CheckCommonControl(int CC);
- extern PACKAGE int __fastcall GetComCtlVersion(void);
- extern PACKAGE void __fastcall CheckToolMenuDropdown(TToolButton* ToolButton);
-
- } /* namespace Comctrls */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Comctrls;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ComCtrls
-